Spaces:
Running on Zero
Running on Zero
Upload app.py
Browse files
app.py
CHANGED
|
@@ -5912,12 +5912,6 @@ with gr.Blocks(title="Wan 2.2 Studio | NEW AI Scene Planner · 64 Clips · 3 Aud
|
|
| 5912 |
info="Higher invents extra frames in between, so motion looks smoother. "
|
| 5913 |
"16 is the normal setting; try 32 if the movement looks jerky.",
|
| 5914 |
)
|
| 5915 |
-
safe_mode_checkbox = gr.Checkbox(
|
| 5916 |
-
label="🛠️ Safe mode",
|
| 5917 |
-
value=True,
|
| 5918 |
-
info="Leave this on. It asks for extra time so a busy server cannot cut your "
|
| 5919 |
-
"clip short half way through.",
|
| 5920 |
-
)
|
| 5921 |
with gr.Row():
|
| 5922 |
aspect_mode = gr.Radio(
|
| 5923 |
[("Crop to fit (default)", "crop"), ("Keep it all, add black bars", "pad")],
|
|
@@ -6241,6 +6235,13 @@ with gr.Blocks(title="Wan 2.2 Studio | NEW AI Scene Planner · 64 Clips · 3 Aud
|
|
| 6241 |
)
|
| 6242 |
gpu_estimate_btn = gr.Button("🔄", variant="secondary", scale=1, min_width=60,
|
| 6243 |
elem_id="estimate-btn")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6244 |
with gr.Group(elem_classes="panel"):
|
| 6245 |
video_output = gr.Video(
|
| 6246 |
label="🎞️ Your generated clip",
|
|
@@ -7273,6 +7274,13 @@ with gr.Blocks(title="Wan 2.2 Studio | NEW AI Scene Planner · 64 Clips · 3 Aud
|
|
| 7273 |
outputs=[gpu_estimate],
|
| 7274 |
show_progress="hidden",
|
| 7275 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7276 |
|
| 7277 |
if __name__ == "__main__":
|
| 7278 |
demo.queue().launch(
|
|
|
|
| 5912 |
info="Higher invents extra frames in between, so motion looks smoother. "
|
| 5913 |
"16 is the normal setting; try 32 if the movement looks jerky.",
|
| 5914 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5915 |
with gr.Row():
|
| 5916 |
aspect_mode = gr.Radio(
|
| 5917 |
[("Crop to fit (default)", "crop"), ("Keep it all, add black bars", "pad")],
|
|
|
|
| 6235 |
)
|
| 6236 |
gpu_estimate_btn = gr.Button("🔄", variant="secondary", scale=1, min_width=60,
|
| 6237 |
elem_id="estimate-btn")
|
| 6238 |
+
safe_mode_checkbox = gr.Checkbox(
|
| 6239 |
+
label="🛠️ Safe mode — adds 15% to the numbers above",
|
| 6240 |
+
value=True,
|
| 6241 |
+
info="On, the booking asks for extra time so a busy server cannot cut your "
|
| 6242 |
+
"clip short half way through. Off is cheaper and the figures above drop "
|
| 6243 |
+
"straight away, but a long clip is more likely to be stopped part-done.",
|
| 6244 |
+
)
|
| 6245 |
with gr.Group(elem_classes="panel"):
|
| 6246 |
video_output = gr.Video(
|
| 6247 |
label="🎞️ Your generated clip",
|
|
|
|
| 7274 |
outputs=[gpu_estimate],
|
| 7275 |
show_progress="hidden",
|
| 7276 |
)
|
| 7277 |
+
# Sitting under the numbers it changes, so the saving has to show without a second press.
|
| 7278 |
+
safe_mode_checkbox.change(
|
| 7279 |
+
fn=_gpu_estimate_text,
|
| 7280 |
+
inputs=_ESTIMATE_INPUTS,
|
| 7281 |
+
outputs=[gpu_estimate],
|
| 7282 |
+
show_progress="hidden",
|
| 7283 |
+
)
|
| 7284 |
|
| 7285 |
if __name__ == "__main__":
|
| 7286 |
demo.queue().launch(
|