Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def split_models(models,nb_models):
|
|
17 |
if i%nb_models==0:
|
18 |
models_lis_temp.append(models_temp)
|
19 |
models_temp=[]
|
20 |
-
|
21 |
-
|
22 |
return models_lis_temp
|
23 |
|
24 |
models_test=split_models(models,nb_models)
|
@@ -81,7 +81,8 @@ def choice_group_b(group_model_choice):
|
|
81 |
|
82 |
def choice_group_c(group_model_choice):
|
83 |
choice=choice_group_a(group_model_choice)
|
84 |
-
return [gr.Textbox(m, visible=False) for m in choice]
|
|
|
85 |
|
86 |
def choice_group_d(var_Test):
|
87 |
(gen_button,stop_button,output,current_models)=var_Test
|
|
|
17 |
if i%nb_models==0:
|
18 |
models_lis_temp.append(models_temp)
|
19 |
models_temp=[]
|
20 |
+
if len(models_temp)>1:
|
21 |
+
models_lis_temp.append(models_temp)
|
22 |
return models_lis_temp
|
23 |
|
24 |
models_test=split_models(models,nb_models)
|
|
|
81 |
|
82 |
def choice_group_c(group_model_choice):
|
83 |
choice=choice_group_a(group_model_choice)
|
84 |
+
"""return [gr.Textbox(m, visible=False) for m in choice] """
|
85 |
+
return [gr.Textbox(m, visible=True) for m in choice]
|
86 |
|
87 |
def choice_group_d(var_Test):
|
88 |
(gen_button,stop_button,output,current_models)=var_Test
|