DemiPoto commited on
Commit
2d1d2f8
1 Parent(s): 3ca4955

Update app3.py

Browse files
Files changed (1) hide show
  1. app3.py +2 -2
app3.py CHANGED
@@ -226,7 +226,7 @@ def disp_models(group_model_choice,nb_rep=nb_rep):
226
  strTemp+="\n"
227
  return gr.Textbox(label="models",value=strTemp)
228
 
229
- def search_models(str_search,tags_plus_models=tags_plus_models,models_plus_tags=models_plus_tags):
230
  output1="\n"
231
  output2=""
232
  for m in tags_plus_models[0][2]:
@@ -234,7 +234,7 @@ def search_models(str_search,tags_plus_models=tags_plus_models,models_plus_tags=
234
  output1+="\"" + m + "\",\n"
235
  outputPlus="\n From tags : \n\n"
236
  for tag_plus_models in tags_plus_models:
237
- if str_search in tag_plus_models[0] and str_search!="":
238
  for m in tag_plus_models[2]:
239
  output2+="\"" + m + "\",\n"
240
  if output2 != "":
 
226
  strTemp+="\n"
227
  return gr.Textbox(label="models",value=strTemp)
228
 
229
+ def search_models(str_search,tags_plus_models=tags_plus_models):
230
  output1="\n"
231
  output2=""
232
  for m in tags_plus_models[0][2]:
 
234
  output1+="\"" + m + "\",\n"
235
  outputPlus="\n From tags : \n\n"
236
  for tag_plus_models in tags_plus_models:
237
+ if str_search.tolower() == tag_plus_models[0].tolower() and str_search!="":
238
  for m in tag_plus_models[2]:
239
  output2+="\"" + m + "\",\n"
240
  if output2 != "":