Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|
| 715 |
-
|
|
|
|
| 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 |
|