Spaces:
Runtime error
Runtime error
Update
Browse files
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 |
-
|
91 |
-
|
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,
|