Update app.py
Browse files
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 |
-
|
| 19 |
|
| 20 |
-
|
| 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()
|