Spaces:
Sleeping
Sleeping
updated text input to timezone (#18)
Browse files- updated text input to timezone (a0d0c015c8a177bd348dc31368b749b5a35eaceb)
- Gradio_UI.py +2 -3
Gradio_UI.py
CHANGED
@@ -283,13 +283,12 @@ class GradioUI:
|
|
283 |
[upload_file, file_uploads_log],
|
284 |
[upload_status, file_uploads_log],
|
285 |
)
|
286 |
-
|
287 |
-
text_input = gr.Textbox(lines=1, label="Chat Message")
|
288 |
text_input.submit(
|
289 |
self.log_user_message,
|
290 |
[text_input, file_uploads_log],
|
291 |
[stored_messages, text_input],
|
292 |
-
).then(self.interact_with_agent, [stored_messages, chatbot,
|
293 |
|
294 |
demo.launch(debug=True, share=True, **kwargs)
|
295 |
|
|
|
283 |
[upload_file, file_uploads_log],
|
284 |
[upload_status, file_uploads_log],
|
285 |
)
|
286 |
+
text_input = gr.Textbox(lines=1, label="Enter Timezone") # add location input as we ask
|
|
|
287 |
text_input.submit(
|
288 |
self.log_user_message,
|
289 |
[text_input, file_uploads_log],
|
290 |
[stored_messages, text_input],
|
291 |
+
).then(self.interact_with_agent, [stored_messages, chatbot, text_input], [chatbot])
|
292 |
|
293 |
demo.launch(debug=True, share=True, **kwargs)
|
294 |
|