Update app_demo.py
Browse files- app_demo.py +2 -2
app_demo.py
CHANGED
@@ -182,7 +182,7 @@ with gr.Blocks() as demo:
|
|
182 |
with gr.Column(scale=1):
|
183 |
with gr.Row():
|
184 |
hfuser_input = gr.Textbox(label="Hugging Face Username")
|
185 |
-
hfuser_models = gr.Dropdown(label="Models from User", choices=[], multiselect=True)
|
186 |
user_model_dict = gr.Textbox(visible=False, label="Dict Input (e.g., {'username': ['model1', 'model2']})")
|
187 |
with gr.Row():
|
188 |
run_btn = gr.Button("Load Models")
|
@@ -209,7 +209,7 @@ with gr.Blocks() as demo:
|
|
209 |
else:
|
210 |
models = ''
|
211 |
label = ''
|
212 |
-
return gr.update(choices=models, label=label)
|
213 |
|
214 |
def update_from_dict(dict_str):
|
215 |
parsed = parse_user_model_dict(dict_str)
|
|
|
182 |
with gr.Column(scale=1):
|
183 |
with gr.Row():
|
184 |
hfuser_input = gr.Textbox(label="Hugging Face Username")
|
185 |
+
hfuser_models = gr.Dropdown(label="Models from User", choices=[], multiselect=True, visible=False)
|
186 |
user_model_dict = gr.Textbox(visible=False, label="Dict Input (e.g., {'username': ['model1', 'model2']})")
|
187 |
with gr.Row():
|
188 |
run_btn = gr.Button("Load Models")
|
|
|
209 |
else:
|
210 |
models = ''
|
211 |
label = ''
|
212 |
+
return gr.update(choices=models, label=label, visible=True)
|
213 |
|
214 |
def update_from_dict(dict_str):
|
215 |
parsed = parse_user_model_dict(dict_str)
|