Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,9 +41,9 @@ def update_imgbox(choices):
|
|
| 41 |
return [gr.Image(None, label=m, visible=(m != 'NA')) for m in choices_plus]
|
| 42 |
|
| 43 |
def choice_group_a(group_model_choice):
|
| 44 |
-
for
|
| 45 |
-
|
| 46 |
-
|
| 47 |
load_fn(models)
|
| 48 |
model_choice = gr.CheckboxGroup(models, label=f' {num_models} different models selected', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)
|
| 49 |
return (model_choice,output,current_models)
|
|
|
|
| 41 |
return [gr.Image(None, label=m, visible=(m != 'NA')) for m in choices_plus]
|
| 42 |
|
| 43 |
def choice_group_a(group_model_choice):
|
| 44 |
+
for m in models_test:
|
| 45 |
+
if group_model_choice==m[0]:
|
| 46 |
+
models=m
|
| 47 |
load_fn(models)
|
| 48 |
model_choice = gr.CheckboxGroup(models, label=f' {num_models} different models selected', value=default_models, multiselect=True, max_choices=num_models, interactive=True, filterable=False)
|
| 49 |
return (model_choice,output,current_models)
|