Spaces:
Runtime error
Runtime error
Ankitajadhav
commited on
Commit
•
99cdb28
1
Parent(s):
699b14f
Update app.py
Browse files
app.py
CHANGED
@@ -71,11 +71,9 @@ def generate_text(
|
|
71 |
temp += out["choices"][0]["text"]
|
72 |
yield temp
|
73 |
|
74 |
-
# Define the Gradio interface
|
75 |
-
demo = gr.
|
76 |
-
|
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=[
|
@@ -83,7 +81,8 @@ demo = gr.Interface(
|
|
83 |
["Can I make lunch for two people with this?"],
|
84 |
],
|
85 |
cache_examples=False,
|
86 |
-
|
|
|
87 |
clear_btn="Clear",
|
88 |
additional_inputs=[
|
89 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
|
|
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=[
|
|
|
81 |
["Can I make lunch for two people with this?"],
|
82 |
],
|
83 |
cache_examples=False,
|
84 |
+
retry_btn=None,
|
85 |
+
undo_btn="Delete Previous",
|
86 |
clear_btn="Clear",
|
87 |
additional_inputs=[
|
88 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|