Update app.py
Browse files
app.py
CHANGED
|
@@ -310,9 +310,9 @@ with gr.Blocks() as demo:
|
|
| 310 |
topic_content_code_state = gr.State()
|
| 311 |
|
| 312 |
topic_dropdown.change(fn=update_topic_content, inputs=topic_dropdown, outputs=[topic_content_dropdown, topic_content_state, topic_code_state])
|
| 313 |
-
topic_content_dropdown.change(fn=update_reports, inputs=[topic_content_dropdown, topic_content_state, topic_code_state],
|
| 314 |
outputs=[report_dropdown, titles_state, topic_content_code_state])
|
| 315 |
-
report_dropdown.change(fn=update_topic_params_and_link, inputs=[report_dropdown, titles_state, topic_code_state, topic_content_code_state],
|
| 316 |
outputs=[topic_params_box, link_output, kwargs_box])
|
| 317 |
|
| 318 |
def run_get_csp_data(lang: str = 'en', topic_params_str: str = '[]', query_kwargs_str: str = '{}') -> List[Dict]:
|
|
|
|
| 310 |
topic_content_code_state = gr.State()
|
| 311 |
|
| 312 |
topic_dropdown.change(fn=update_topic_content, inputs=topic_dropdown, outputs=[topic_content_dropdown, topic_content_state, topic_code_state])
|
| 313 |
+
topic_content_dropdown.change(fn=update_reports, inputs=[topic_content_dropdown, topic_content_state], #, topic_code_state],
|
| 314 |
outputs=[report_dropdown, titles_state, topic_content_code_state])
|
| 315 |
+
report_dropdown.change(fn=update_topic_params_and_link, inputs=[report_dropdown, titles_state], #, topic_code_state, topic_content_code_state],
|
| 316 |
outputs=[topic_params_box, link_output, kwargs_box])
|
| 317 |
|
| 318 |
def run_get_csp_data(lang: str = 'en', topic_params_str: str = '[]', query_kwargs_str: str = '{}') -> List[Dict]:
|