hash-map commited on
Commit
f62a3fd
·
verified ·
1 Parent(s): a2b161c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,9 +15,9 @@ with gr.Blocks() as demo:
15
  chatbot = gr.Chatbot(label="Chat History")
16
  msg = gr.Textbox(label="Write something about Game of Thrones here...")
17
 
18
- clear = gr.Button("Clear")
19
 
20
- msg.submit(respond, inputs=[msg], outputs=[msg, chatbot])
21
- clear.click(lambda: ([], ""), None, [chatbot, msg])
22
 
23
  demo.launch()
 
15
  chatbot = gr.Chatbot(label="Chat History")
16
  msg = gr.Textbox(label="Write something about Game of Thrones here...")
17
 
18
+ submit = gr.Button("Submit")
19
 
20
+ submit.click(respond, inputs=[msg], outputs=[msg, chatbot])
21
+ #clear.click(lambda: ([], ""), None, [chatbot, msg])
22
 
23
  demo.launch()