Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ Refactor the provided Python code to improve its maintainability and efficiency
|
|
| 18 |
"""
|
| 19 |
title = "Python Refactoring"
|
| 20 |
description = """
|
| 21 |
-
Please give it
|
| 22 |
"""
|
| 23 |
css = """.toast-wrap { display: none !important } """
|
| 24 |
examples=[["""
|
|
@@ -121,7 +121,7 @@ async def predict(message, chatbot, temperature=0.1, max_new_tokens=4096, top_p
|
|
| 121 |
gr.ChatInterface(
|
| 122 |
predict,
|
| 123 |
chatbot=gr.Chatbot(height=500),
|
| 124 |
-
textbox=gr.Textbox(lines=10, label="Python Code" , placeholder="Enter your Python code here..."),
|
| 125 |
title=title,
|
| 126 |
description=description,
|
| 127 |
theme="abidlabs/Lime",
|
|
|
|
| 18 |
"""
|
| 19 |
title = "Python Refactoring"
|
| 20 |
description = """
|
| 21 |
+
Please give it 4 to 5 minutes for the model to load and Run , consider using Python code with less than 120 lines of code due to GPU constrainst
|
| 22 |
"""
|
| 23 |
css = """.toast-wrap { display: none !important } """
|
| 24 |
examples=[["""
|
|
|
|
| 121 |
gr.ChatInterface(
|
| 122 |
predict,
|
| 123 |
chatbot=gr.Chatbot(height=500),
|
| 124 |
+
textbox=gr.Textbox(lines=10, label="Python Code" , placeholder="Enter or Paste your Python code here..."),
|
| 125 |
title=title,
|
| 126 |
description=description,
|
| 127 |
theme="abidlabs/Lime",
|