karths commited on
Commit
f660680
·
verified ·
1 Parent(s): 8a1273c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 3 to 4 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,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",