Ankitajadhav commited on
Commit
3d56935
·
verified ·
1 Parent(s): 43a8cd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -71,9 +71,11 @@ def generate_text(
71
  temp += out["choices"][0]["text"]
72
  yield temp
73
 
74
- # Define the Gradio interface
75
- demo = gr.ChatInterface(
76
- generate_text,
 
 
77
  title="llama-cpp-python on GPU with ChromaDB",
78
  description="Running LLM with context retrieval from ChromaDB",
79
  examples=[
@@ -94,3 +96,4 @@ demo = gr.ChatInterface(
94
 
95
  if __name__ == "__main__":
96
  demo.launch()
 
 
71
  temp += out["choices"][0]["text"]
72
  yield temp
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",
80
  description="Running LLM with context retrieval from ChromaDB",
81
  examples=[
 
96
 
97
  if __name__ == "__main__":
98
  demo.launch()
99
+