Aivis commited on
Commit
6338f4f
·
verified ·
1 Parent(s): 0c8e881

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -304,7 +304,7 @@ with gr.Blocks() as demo:
304
  topic_content_code_state = gr.State()
305
 
306
  topic_dropdown.change(fn=update_topic_content, inputs=topic_dropdown, outputs=[topic_content_dropdown, topic_content_state, topic_code_state])
307
- topic_content_dropdown.change(fn=update_reports, inputs=[topic_content_dropdown, topic_content_state], #, topic_code_state],
308
  outputs=[titles_state, topic_content_code_state, report_dropdown])
309
  report_dropdown.change(fn=update_topic_params_and_link, inputs=[report_dropdown, titles_state], #, topic_code_state, topic_content_code_state],
310
  outputs=[topic_params_box, link_output, kwargs_box])
 
304
  topic_content_code_state = gr.State()
305
 
306
  topic_dropdown.change(fn=update_topic_content, inputs=topic_dropdown, outputs=[topic_content_dropdown, topic_content_state, topic_code_state])
307
+ topic_content_dropdown.change(fn=update_reports, inputs=[topic_content_dropdown, '', topic_content_state], #, topic_code_state],
308
  outputs=[titles_state, topic_content_code_state, report_dropdown])
309
  report_dropdown.change(fn=update_topic_params_and_link, inputs=[report_dropdown, titles_state], #, topic_code_state, topic_content_code_state],
310
  outputs=[topic_params_box, link_output, kwargs_box])