albertvillanova HF staff commited on
Commit
1f43e72
1 Parent(s): bf6ab81

Call update_load_results_component with multiple triggers

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -69,7 +69,8 @@ with gr.Blocks(fill_height=True) as demo:
69
  details_dataframe_2 = gr.Dataframe(visible=False)
70
  details_dataframe = gr.DataFrame(visible=False)
71
 
72
- model_id_1.change(
 
73
  fn=update_load_results_component,
74
  outputs=load_results_btn,
75
  )
 
69
  details_dataframe_2 = gr.Dataframe(visible=False)
70
  details_dataframe = gr.DataFrame(visible=False)
71
 
72
+ gr.on(
73
+ triggers=[model_id_1.change, model_id_2.change],
74
  fn=update_load_results_component,
75
  outputs=load_results_btn,
76
  )