fix clear button
Browse files
app.py
CHANGED
@@ -205,8 +205,11 @@ with demo:
|
|
205 |
lesson_graph.graph_to_json,
|
206 |
outputs=[message_output]
|
207 |
)
|
208 |
-
|
209 |
-
clear_btn.click(
|
|
|
|
|
|
|
210 |
|
211 |
# Add Markdown section explaining the purpose and use of the app
|
212 |
gr.Markdown("""
|
|
|
205 |
lesson_graph.graph_to_json,
|
206 |
outputs=[message_output]
|
207 |
)
|
208 |
+
|
209 |
+
clear_btn.click(
|
210 |
+
lesson_graph.clear_graph,
|
211 |
+
outputs=[search_output, graph_output, message_output] # Pass all the outputs as a list
|
212 |
+
)
|
213 |
|
214 |
# Add Markdown section explaining the purpose and use of the app
|
215 |
gr.Markdown("""
|