multimodalart HF Staff commited on
Commit
22ab819
·
verified ·
1 Parent(s): 3fbf7ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -711,8 +711,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
711
 
712
  for control in [light_type, light_direction, light_intensity, illumination_env]:
713
  control.input(
714
- fn=lambda choice, *args: maybe_infer(*args) if should_trigger_infer(choice) else (gr.update(), gr.update(), gr.update(), gr.update()),
715
- inputs=[control] + control_inputs_with_flag,
 
716
  outputs=outputs + [create_video_button]
717
  )
718
 
 
711
 
712
  for control in [light_type, light_direction, light_intensity, illumination_env]:
713
  control.input(
714
+ fn=lambda choice, is_reset_val, *args, progress=gr.Progress(track_tqdm=True):
715
+ maybe_infer(is_reset_val, progress, *args) if should_trigger_infer(choice) else (gr.update(), gr.update(), gr.update(), gr.update()),
716
+ inputs=[control, is_reset] + control_inputs, # Pass control separately, then is_reset, then the rest
717
  outputs=outputs + [create_video_button]
718
  )
719