artificialguybr commited on
Commit
1ec1f0d
·
verified ·
1 Parent(s): 7d156bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -226,11 +226,12 @@ with gr.Blocks(css="#col-container { margin: 0 auto; max-width: 1024px; }") as d
226
  fn=on_lora_change,
227
  inputs=lora_selector,
228
  outputs=[lora_description, input_image_box, style_image_box, prompt_box]
229
- ).then(
230
- None,
231
- lora_selector,
232
- [lora_description, input_image_box, style_image_box, prompt_box],
233
- _js="() => { document.querySelector('#lora_selector select').dispatchEvent(new Event('change')) }"
 
234
  )
235
 
236
  run_button.click(
 
226
  fn=on_lora_change,
227
  inputs=lora_selector,
228
  outputs=[lora_description, input_image_box, style_image_box, prompt_box]
229
+ )
230
+
231
+ demo.load(
232
+ fn=on_lora_change,
233
+ inputs=lora_selector,
234
+ outputs=[lora_description, input_image_box, style_image_box, prompt_box]
235
  )
236
 
237
  run_button.click(