Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 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 |
+
|