DemiPoto commited on
Commit
22e71c8
·
verified ·
1 Parent(s): ac296b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -269,8 +269,8 @@ def fonc_del_param(lp,txt_input,neg_input,width,height,steps,cfg,seed):
269
 
270
  def fonc_load_info(nb_of_models_to_gen,index_tag,index_first_model):
271
  str_temp=""
272
- if index_first_model+nb_of_models_to_gen>len(tags_plus_models[index_tag][2])-1:
273
- if nb_of_models_to_gen>len(tags_plus_models[index_tag][2])-1:
274
  str_temp+="warning : to many model chosen"
275
  else:
276
  str_temp+="warning : first model to close to the last model"
@@ -279,7 +279,7 @@ def fonc_load_info(nb_of_models_to_gen,index_tag,index_first_model):
279
  str_temp+="list of models use: (from "
280
  str_temp+=f"{index_first_model+1}/{len(tags_plus_models[index_tag][2])} to {index_first_model+nb_of_models_to_gen+1}/{len(tags_plus_models[index_tag][2])})\n"
281
  for i in range(nb_of_models_to_gen):
282
- str_temp+=f"{tags_plus_models[index_tag][2][i-1+index_first_model]}\n"
283
 
284
  return nb_of_models_to_gen,gr.Textbox(str_temp)
285
 
 
269
 
270
  def fonc_load_info(nb_of_models_to_gen,index_tag,index_first_model):
271
  str_temp=""
272
+ if index_first_model+nb_of_models_to_gen>len(tags_plus_models[index_tag][2]):
273
+ if nb_of_models_to_gen>len(tags_plus_models[index_tag][2]):
274
  str_temp+="warning : to many model chosen"
275
  else:
276
  str_temp+="warning : first model to close to the last model"
 
279
  str_temp+="list of models use: (from "
280
  str_temp+=f"{index_first_model+1}/{len(tags_plus_models[index_tag][2])} to {index_first_model+nb_of_models_to_gen+1}/{len(tags_plus_models[index_tag][2])})\n"
281
  for i in range(nb_of_models_to_gen):
282
+ str_temp+=f"{tags_plus_models[index_tag][2][i+index_first_model]}\n"
283
 
284
  return nb_of_models_to_gen,gr.Textbox(str_temp)
285