Update app.py
Browse files
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])
|