Spaces:
Running
Running
Commit
•
8f68cc2
1
Parent(s):
7e19f96
Trigger display_results on multiple triggers
Browse files
app.py
CHANGED
@@ -300,15 +300,12 @@ with gr.Blocks(fill_height=True) as demo:
|
|
300 |
fn=load_results_dataframes,
|
301 |
inputs=[model_id_1, model_id_2],
|
302 |
outputs=[dataframe_1, dataframe_2],
|
303 |
-
).then(
|
304 |
-
fn=display_results,
|
305 |
-
inputs=[task, dataframe_1, dataframe_2],
|
306 |
-
outputs=[results, configs],
|
307 |
).then(
|
308 |
fn=update_tasks_component,
|
309 |
outputs=task,
|
310 |
)
|
311 |
-
|
|
|
312 |
fn=display_results,
|
313 |
inputs=[task, dataframe_1, dataframe_2],
|
314 |
outputs=[results, configs],
|
|
|
300 |
fn=load_results_dataframes,
|
301 |
inputs=[model_id_1, model_id_2],
|
302 |
outputs=[dataframe_1, dataframe_2],
|
|
|
|
|
|
|
|
|
303 |
).then(
|
304 |
fn=update_tasks_component,
|
305 |
outputs=task,
|
306 |
)
|
307 |
+
gr.on(
|
308 |
+
triggers=[dataframe_1.change, dataframe_2.change, task.change],
|
309 |
fn=display_results,
|
310 |
inputs=[task, dataframe_1, dataframe_2],
|
311 |
outputs=[results, configs],
|