hysts HF staff commited on
Commit
3f0b2d3
β€’
1 Parent(s): 074f54b
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -87,13 +87,8 @@ with gr.Blocks(css="style.css") as demo:
87
  queue=False,
88
  api_name="check_base_model",
89
  )
90
- new_base_model_id.submit(
91
- fn=model.set_base_model,
92
- inputs=new_base_model_id,
93
- outputs=current_base_model,
94
- api_name=False,
95
- )
96
- change_base_model_button.click(
97
  fn=model.set_base_model,
98
  inputs=new_base_model_id,
99
  outputs=current_base_model,
 
87
  queue=False,
88
  api_name="check_base_model",
89
  )
90
+ gr.on(
91
+ triggers=[new_base_model_id.submit, change_base_model_button.click],
 
 
 
 
 
92
  fn=model.set_base_model,
93
  inputs=new_base_model_id,
94
  outputs=current_base_model,