Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -69,10 +69,15 @@ def predict(message, history):
|
|
69 |
partial_message += chunk
|
70 |
yield partial_message
|
71 |
|
72 |
-
gr.Interface(
|
73 |
-
fn=predict,
|
74 |
-
inputs=
|
75 |
-
outputs=
|
76 |
live=True,
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
69 |
partial_message += chunk
|
70 |
yield partial_message
|
71 |
|
72 |
+
iface = gr.Interface(
|
73 |
+
fn=predict,
|
74 |
+
inputs=gr.Textbox(placeholder="Chat with me!", label="Your Message"),
|
75 |
+
outputs=gr.Text(label="Response"),
|
76 |
live=True,
|
77 |
+
title="Infectious-Disease-Diagnosis-Chatbot",
|
78 |
+
description="This is the demo for Gradio UI consuming TGI endpoint with LLaMA 7B-Chat model.",
|
79 |
+
examples=[["Are tomatoes vegetables?"]],
|
80 |
+
theme="default" # You can choose a theme that fits your UI preference
|
81 |
+
)
|
82 |
+
|
83 |
+
iface.launch()
|