Hyeonseo commited on
Commit
80bdab0
1 Parent(s): ca8df77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
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=[gr.inputs.Textbox(label="Your Message"), gr.inputs.State(label="History")],
75
- outputs='text',
76
  live=True,
77
- allow_flagging="never"
78
- ).launch()
 
 
 
 
 
 
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()