Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,12 +71,16 @@ with gr.Blocks(theme=gr.themes.Base()) as interface:
|
|
71 |
|
72 |
# Bind functionality
|
73 |
submit_btn.click(
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
clear_btn.click(
|
|
|
|
|
|
|
|
|
80 |
|
81 |
|
82 |
# === Launch the app ===
|
|
|
71 |
|
72 |
# Bind functionality
|
73 |
submit_btn.click(
|
74 |
+
generate_answer,
|
75 |
+
inputs=[question_box, state],
|
76 |
+
outputs=[question_box, chatbot],
|
77 |
+
)
|
78 |
+
|
79 |
+
clear_btn.click(
|
80 |
+
lambda: ("", [], []),
|
81 |
+
inputs=[],
|
82 |
+
outputs=[question_box, chatbot, state],
|
83 |
+
)
|
84 |
|
85 |
|
86 |
# === Launch the app ===
|