Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -97,8 +97,8 @@ with gr.Blocks() as demo:
|
|
97 |
submit = gr.Button(chatbot_submit_button, variant="primary")
|
98 |
|
99 |
# Submit and Reset button actions
|
100 |
-
submit.click(fn=
|
101 |
-
user_input.submit(fn=
|
102 |
reset.click(fn=reset_output, inputs=None, outputs=chatbot_output)
|
103 |
|
104 |
if __name__ == "__main__":
|
|
|
97 |
submit = gr.Button(chatbot_submit_button, variant="primary")
|
98 |
|
99 |
# Submit and Reset button actions
|
100 |
+
submit.click(fn=chat_interaction, inputs=[user_input, chatbot_output], outputs=chatbot_output)
|
101 |
+
user_input.submit(fn=chat_interaction, inputs=[user_input, chatbot_output], outputs=chatbot_output)
|
102 |
reset.click(fn=reset_output, inputs=None, outputs=chatbot_output)
|
103 |
|
104 |
if __name__ == "__main__":
|