DemiPoto commited on
Commit
b461049
·
verified ·
1 Parent(s): e6e6106

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -316,7 +316,7 @@ def make_me():
316
  #list_models_in_tag.change(lambda x:gr.Dropdown(choices=x),list_models_in_tag,index_first_model)
317
  index_tag=gr.Dropdown(label="Tag",choices=list(list_tags),type="index")
318
  index_first_model=gr.Dropdown(label="First model",choices=list(tags_plus_models[1][2]), type="index")
319
- index_tag.change(lambda x:gr.Dropdown(choices=list(tags_plus_models[index_tag][2])),index_tag,index_first_model)
320
  with gr.Row():
321
  disp_info=gr.Textbox(label="Info")
322
  load_info=gr.Button("Load info")
 
316
  #list_models_in_tag.change(lambda x:gr.Dropdown(choices=x),list_models_in_tag,index_first_model)
317
  index_tag=gr.Dropdown(label="Tag",choices=list(list_tags),type="index")
318
  index_first_model=gr.Dropdown(label="First model",choices=list(tags_plus_models[1][2]), type="index")
319
+ index_tag.change(lambda i:gr.Dropdown(choices=list(tags_plus_models[i][2])),index_tag,index_first_model)
320
  with gr.Row():
321
  disp_info=gr.Textbox(label="Info")
322
  load_info=gr.Button("Load info")