Ankitajadhav commited on
Commit
55952b6
·
verified ·
1 Parent(s): 3d56935

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -73,7 +73,7 @@ def generate_text(
73
 
74
  # Define the Gradio interface without timeout
75
  demo = gr.Interface(
76
- fn=generate_text,
77
  inputs="text",
78
  outputs="text",
79
  title="llama-cpp-python on GPU with ChromaDB",
@@ -83,8 +83,7 @@ demo = gr.Interface(
83
  ["Can I make lunch for two people with this?"],
84
  ],
85
  cache_examples=False,
86
- retry_btn=None,
87
- undo_btn="Delete Previous",
88
  clear_btn="Clear",
89
  additional_inputs=[
90
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
@@ -92,6 +91,7 @@ demo = gr.Interface(
92
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
93
  gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
94
  ],
 
95
  )
96
 
97
  if __name__ == "__main__":
 
73
 
74
  # Define the Gradio interface without timeout
75
  demo = gr.Interface(
76
+ fn=generate_text,
77
  inputs="text",
78
  outputs="text",
79
  title="llama-cpp-python on GPU with ChromaDB",
 
83
  ["Can I make lunch for two people with this?"],
84
  ],
85
  cache_examples=False,
86
+ interpretation="clear",
 
87
  clear_btn="Clear",
88
  additional_inputs=[
89
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
 
91
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
92
  gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
93
  ],
94
+ processing_timeout=None, # No timeout limit
95
  )
96
 
97
  if __name__ == "__main__":