Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -292,6 +292,35 @@ with gr.Blocks(title="LTX-2.3 Distilled") as demo:
|
|
| 292 |
|
| 293 |
with gr.Column():
|
| 294 |
output_video = gr.Video(label="Generated Video", autoplay=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 295 |
|
| 296 |
# Auto-detect aspect ratio from uploaded image and set resolution
|
| 297 |
first_image.change(
|
|
|
|
| 292 |
|
| 293 |
with gr.Column():
|
| 294 |
output_video = gr.Video(label="Generated Video", autoplay=True)
|
| 295 |
+
|
| 296 |
+
gr.Examples(
|
| 297 |
+
examples=[
|
| 298 |
+
[
|
| 299 |
+
None, # first_image
|
| 300 |
+
"pinkknit.jpg", # last_image
|
| 301 |
+
"The camera falls downward through darkness as if dropped into a tunnel. "
|
| 302 |
+
"As it slows, five friends wearing pink knitted hats and sunglasses lean "
|
| 303 |
+
"over and look down toward the camera with curious expressions. The lens "
|
| 304 |
+
"has a strong fisheye effect, creating a circular frame around them. They "
|
| 305 |
+
"crowd together closely, forming a symmetrical cluster while staring "
|
| 306 |
+
"directly into the lens.",
|
| 307 |
+
3.0, # duration
|
| 308 |
+
False, # enhance_prompt
|
| 309 |
+
42, # seed
|
| 310 |
+
True, # randomize_seed
|
| 311 |
+
1024,
|
| 312 |
+
1024
|
| 313 |
+
|
| 314 |
+
],
|
| 315 |
+
],
|
| 316 |
+
fn=generate_video,
|
| 317 |
+
inputs=[
|
| 318 |
+
first_image, last_image, prompt, duration,
|
| 319 |
+
enhance_prompt, seed, randomize_seed, height, width,
|
| 320 |
+
],
|
| 321 |
+
cache_examples=True,
|
| 322 |
+
cache_mode="lazy"
|
| 323 |
+
)
|
| 324 |
|
| 325 |
# Auto-detect aspect ratio from uploaded image and set resolution
|
| 326 |
first_image.change(
|