Commit
·
3faf0fe
1
Parent(s):
076b4f2
Remove redundant chat input clear functionality
Browse files- Delete unnecessary chat input clear event handler
- Simplify Gradio UI interaction logic
- app/app.py +0 -6
app/app.py
CHANGED
@@ -469,12 +469,6 @@ with gr.Blocks(css=css) as demo:
|
|
469 |
outputs=[dataframe, chatbot],
|
470 |
)
|
471 |
|
472 |
-
chat_input.clear(
|
473 |
-
fn=lambda: gr.Textbox(interactive=True),
|
474 |
-
inputs=[chat_input],
|
475 |
-
outputs=[chat_input], # Reset chat input
|
476 |
-
)
|
477 |
-
|
478 |
chatbot.like(
|
479 |
fn=wrangle_like_data,
|
480 |
inputs=[chatbot],
|
|
|
469 |
outputs=[dataframe, chatbot],
|
470 |
)
|
471 |
|
|
|
|
|
|
|
|
|
|
|
|
|
472 |
chatbot.like(
|
473 |
fn=wrangle_like_data,
|
474 |
inputs=[chatbot],
|