Curranj commited on
Commit
56ba3a8
·
verified ·
1 Parent(s): 58607a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -73,15 +73,14 @@ def predict(message, history):
73
  yield partial_message
74
 
75
  # Adjust the Gradio interface for a chatbot
76
- 76 + demo = gr.Interface(
77
- 77 + fn=predict,
78
- 78 + inputs=[
79
- 79 + gr.Textbox(label="Message", placeholder="Enter your message"),
80
- 80 + gr.State(label="Conversation History") # State is used to manage history
81
- 81 + ],
82
- 82 + outputs=gr.Textbox(label="Response"),
83
- 83 + live=True
84
- 84 + ).queue()
85
 
86
  if __name__ == "__main__":
87
  demo.launch()
 
73
  yield partial_message
74
 
75
  # Adjust the Gradio interface for a chatbot
76
+ demo = gr.Interface(
77
+ fn=predict,
78
+ inputs=[
79
+ gr.Textbox(label="Message", placeholder="Enter your message"),
80
+ gr.State(label="Conversation History") # State is used to manage history
81
+ ],
82
+ outputs=gr.Textbox(label="Response"),
83
+ live=True).queue()
 
84
 
85
  if __name__ == "__main__":
86
  demo.launch()