DemiPoto commited on
Commit
f0bb78c
·
verified ·
1 Parent(s): b088dc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- models_lis_temp.append(models_temp)
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