Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ with gr.Blocks() as demo:
|
|
67 |
'''
|
68 |
]])
|
69 |
msg = gr.Textbox()
|
70 |
-
|
71 |
chat_history = []
|
72 |
|
73 |
def user(query, chat_history):
|
@@ -89,8 +89,8 @@ with gr.Blocks() as demo:
|
|
89 |
return gr.update(value=""), chat_history
|
90 |
|
91 |
|
|
|
92 |
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False)
|
93 |
-
clear.click(lambda: None, None, chatbot, queue=False)
|
94 |
|
95 |
if __name__ == "__main__":
|
96 |
demo.launch()
|
|
|
67 |
'''
|
68 |
]])
|
69 |
msg = gr.Textbox()
|
70 |
+
submit = gr.Button("Submit")
|
71 |
chat_history = []
|
72 |
|
73 |
def user(query, chat_history):
|
|
|
89 |
return gr.update(value=""), chat_history
|
90 |
|
91 |
|
92 |
+
submit.click(user, [msg, chatbot], [msg, chatbot], queue=False)
|
93 |
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False)
|
|
|
94 |
|
95 |
if __name__ == "__main__":
|
96 |
demo.launch()
|