Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -602,29 +602,6 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
|
|
| 602 |
progress: gr.Progress = gr.Progress(track_tqdm=True),
|
| 603 |
*args: Any
|
| 604 |
):
|
| 605 |
-
"""
|
| 606 |
-
Conditionally run live inference when sliders change.
|
| 607 |
-
|
| 608 |
-
If `is_reset` is True, this function returns empty updates so that no
|
| 609 |
-
inference is triggered while the controls are being reset.
|
| 610 |
-
|
| 611 |
-
Otherwise, it forwards the remaining arguments to `infer_camera_edit`.
|
| 612 |
-
|
| 613 |
-
Args:
|
| 614 |
-
is_reset (bool):
|
| 615 |
-
Indicates whether the UI is in a reset state.
|
| 616 |
-
progress (gr.Progress, optional):
|
| 617 |
-
Gradio progress tracker injected by Gradio.
|
| 618 |
-
*args:
|
| 619 |
-
Remaining positional args forwarded to `infer_camera_edit`.
|
| 620 |
-
|
| 621 |
-
Returns:
|
| 622 |
-
tuple:
|
| 623 |
-
When resetting:
|
| 624 |
-
(gr.update(), gr.update(), gr.update(), gr.update())
|
| 625 |
-
When running inference:
|
| 626 |
-
(output_image, seed, prompt, video_button_visibility_update)
|
| 627 |
-
"""
|
| 628 |
if is_reset:
|
| 629 |
return gr.update(), gr.update(), gr.update(), gr.update()
|
| 630 |
else:
|
|
|
|
| 602 |
progress: gr.Progress = gr.Progress(track_tqdm=True),
|
| 603 |
*args: Any
|
| 604 |
):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 605 |
if is_reset:
|
| 606 |
return gr.update(), gr.update(), gr.update(), gr.update()
|
| 607 |
else:
|