Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -82,15 +82,19 @@ class ChatbotInterface:
|
|
82 |
placeholder=self.input_placeholder
|
83 |
)
|
84 |
|
85 |
-
# Buttons
|
86 |
-
with gr.Row():
|
87 |
-
|
88 |
-
|
89 |
|
90 |
-
# Button actions
|
91 |
-
submit.click(fn=conversation, inputs=[user_input, chatbot_output], outputs=chatbot_output)
|
|
|
|
|
|
|
|
|
92 |
user_input.submit(fn=conversation, inputs=[user_input, chatbot_output], outputs=chatbot_output)
|
93 |
-
|
94 |
|
95 |
logging.info("Gradio interface created successfully.")
|
96 |
return demo
|
|
|
82 |
placeholder=self.input_placeholder
|
83 |
)
|
84 |
|
85 |
+
# # Buttons
|
86 |
+
# with gr.Row():
|
87 |
+
# reset = gr.Button(self.reset_button, variant="secondary")
|
88 |
+
# submit = gr.Button(self.submit_button, variant="primary")
|
89 |
|
90 |
+
# # Button actions
|
91 |
+
# submit.click(fn=conversation, inputs=[user_input, chatbot_output], outputs=chatbot_output)
|
92 |
+
# user_input.submit(fn=conversation, inputs=[user_input, chatbot_output], outputs=chatbot_output)
|
93 |
+
# reset.click(fn=self.reset_output, inputs=None, outputs=chatbot_output)
|
94 |
+
|
95 |
+
# Allow submitting input with Enter key
|
96 |
user_input.submit(fn=conversation, inputs=[user_input, chatbot_output], outputs=chatbot_output)
|
97 |
+
|
98 |
|
99 |
logging.info("Gradio interface created successfully.")
|
100 |
return demo
|