donb-hf commited on
Commit
5f124eb
Β·
verified Β·
1 Parent(s): 86308d7

fix clear button

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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(lesson_graph.clear_graph, outputs=search_output, graph_output, message_output)
 
 
 
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("""