Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -196,6 +196,7 @@ def generate_video(
|
|
| 196 |
raise gr.Error("Please upload both a start and an end image.")
|
| 197 |
|
| 198 |
progress(0.1, desc="Preprocessing images...")
|
|
|
|
| 199 |
|
| 200 |
# Step 1: Process the start image to get our target dimensions based on the new rules.
|
| 201 |
processed_start_image = process_image_for_video(start_image_pil)
|
|
@@ -299,18 +300,5 @@ with gr.Blocks() as app:
|
|
| 299 |
outputs=ui_outputs
|
| 300 |
)
|
| 301 |
|
| 302 |
-
gr.Examples(
|
| 303 |
-
examples=[
|
| 304 |
-
["poli_tower.png", "tower_takes_off.png", "the man turns around"],
|
| 305 |
-
["ugly_sonic.jpeg", "squatting_sonic.png", "the character dodges the missiles"],
|
| 306 |
-
["capyabara_zoomed.png", "capyabara.webp", "a dramatic dolly zoom"],
|
| 307 |
-
],
|
| 308 |
-
inputs=[start_image, end_image, prompt],
|
| 309 |
-
outputs=ui_outputs,
|
| 310 |
-
fn=generate_video,
|
| 311 |
-
cache_examples=True,
|
| 312 |
-
cache_mode="lazy"
|
| 313 |
-
)
|
| 314 |
-
|
| 315 |
if __name__ == "__main__":
|
| 316 |
app.launch(share=True, theme=gr.themes.Citrus(), css=css)
|
|
|
|
| 196 |
raise gr.Error("Please upload both a start and an end image.")
|
| 197 |
|
| 198 |
progress(0.1, desc="Preprocessing images...")
|
| 199 |
+
|
| 200 |
|
| 201 |
# Step 1: Process the start image to get our target dimensions based on the new rules.
|
| 202 |
processed_start_image = process_image_for_video(start_image_pil)
|
|
|
|
| 300 |
outputs=ui_outputs
|
| 301 |
)
|
| 302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 303 |
if __name__ == "__main__":
|
| 304 |
app.launch(share=True, theme=gr.themes.Citrus(), css=css)
|