anzorq commited on
Commit
5983023
1 Parent(s): 12b828c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -212,7 +212,7 @@ with gr.Blocks(css=css) as demo:
212
  strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
213
 
214
  model_name.change(lambda x: gr.update(visible = x == models[0].name), inputs=model_name, outputs=custom_model_path)
215
- custom_model_path.change(custom_model_changed, inputs=custom_model_path)
216
  # n_images.change(lambda n: gr.Gallery().style(grid=[2 if n > 1 else 1], height="auto"), inputs=n_images, outputs=gallery)
217
 
218
  inputs = [model_name, prompt, guidance, steps, width, height, seed, image, strength, neg_prompt]
 
212
  strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
213
 
214
  model_name.change(lambda x: gr.update(visible = x == models[0].name), inputs=model_name, outputs=custom_model_path)
215
+ custom_model_path.change(custom_model_changed, inputs=custom_model_path, outputs=None)
216
  # n_images.change(lambda n: gr.Gallery().style(grid=[2 if n > 1 else 1], height="auto"), inputs=n_images, outputs=gallery)
217
 
218
  inputs = [model_name, prompt, guidance, steps, width, height, seed, image, strength, neg_prompt]