benibraz commited on
Commit
204979d
1 Parent(s): 75ea547

Fix output index for preset change event handlers in video generation

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -559,7 +559,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
559
 
560
  # [Previous event handlers remain the same]
561
  txt2vid_preset.change(
562
- fn=preset_changed, inputs=[txt2vid_preset], outputs=txt2vid_advanced[4:]
563
  )
564
 
565
  txt2vid_generate.click(
@@ -577,7 +577,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as iface:
577
  )
578
 
579
  img2vid_preset.change(
580
- fn=preset_changed, inputs=[img2vid_preset], outputs=img2vid_advanced[4:]
581
  )
582
 
583
  img2vid_generate.click(
 
559
 
560
  # [Previous event handlers remain the same]
561
  txt2vid_preset.change(
562
+ fn=preset_changed, inputs=[txt2vid_preset], outputs=txt2vid_advanced[3:]
563
  )
564
 
565
  txt2vid_generate.click(
 
577
  )
578
 
579
  img2vid_preset.change(
580
+ fn=preset_changed, inputs=[img2vid_preset], outputs=img2vid_advanced[3:]
581
  )
582
 
583
  img2vid_generate.click(