Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +8 -6
Gradio_UI.py
CHANGED
|
@@ -344,15 +344,17 @@ class GradioUI:
|
|
| 344 |
text_input = gr.Textbox(lines=1, label="Chat Message")
|
| 345 |
text_input.submit(
|
| 346 |
self.log_user_message,
|
| 347 |
-
|
|
|
|
|
|
|
| 348 |
[stored_messages, text_input],
|
| 349 |
).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
|
| 350 |
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
gr.Markdown( agent_footer )
|
| 357 |
|
| 358 |
demo.launch(debug=True, share=True, **kwargs)
|
|
|
|
| 344 |
text_input = gr.Textbox(lines=1, label="Chat Message")
|
| 345 |
text_input.submit(
|
| 346 |
self.log_user_message,
|
| 347 |
+
text_input,
|
| 348 |
+
#[text_input, file_uploads_log],
|
| 349 |
+
# outputs
|
| 350 |
[stored_messages, text_input],
|
| 351 |
).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
|
| 352 |
|
| 353 |
+
gr.Examples(
|
| 354 |
+
examples=get_examples(),
|
| 355 |
+
inputs=text_input,
|
| 356 |
+
label="Example Input Text"
|
| 357 |
+
)
|
| 358 |
gr.Markdown( agent_footer )
|
| 359 |
|
| 360 |
demo.launch(debug=True, share=True, **kwargs)
|