Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,6 @@ import os
|
|
| 2 |
import sys
|
| 3 |
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 4 |
|
| 5 |
-
#import subprocess
|
| 6 |
-
#subprocess.run('pip install flash-attn==2.7.4.post1 --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
| 7 |
-
|
| 8 |
# wan2.2-main/gradio_ti2v.py
|
| 9 |
import gradio as gr
|
| 10 |
import torch
|
|
@@ -194,7 +191,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(), delete_cache=(60, 900)) as demo:
|
|
| 194 |
|
| 195 |
with gr.Row():
|
| 196 |
with gr.Column(scale=2):
|
| 197 |
-
image_input = gr.Image(type="numpy", label="
|
| 198 |
prompt_input = gr.Textbox(label="Prompt", value="A beautiful waterfall in a lush jungle, cinematic.", lines=3)
|
| 199 |
duration_input = gr.Slider(
|
| 200 |
minimum=round(MIN_FRAMES_MODEL/FIXED_FPS, 1),
|
|
@@ -234,7 +231,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft(), delete_cache=(60, 900)) as demo:
|
|
| 234 |
example_image_path = os.path.join(os.path.dirname(__file__), "examples/i2v_input.JPG")
|
| 235 |
gr.Examples(
|
| 236 |
examples=[
|
| 237 |
-
[example_image_path, "The cat removes the glasses from its eyes.",
|
| 238 |
[None, "A cinematic shot of a boat sailing on a calm sea at sunset.", 704, 1280, 2.0],
|
| 239 |
[None, "Drone footage flying over a futuristic city with flying cars.", 704, 1280, 2.0],
|
| 240 |
],
|
|
|
|
| 2 |
import sys
|
| 3 |
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
# wan2.2-main/gradio_ti2v.py
|
| 6 |
import gradio as gr
|
| 7 |
import torch
|
|
|
|
| 191 |
|
| 192 |
with gr.Row():
|
| 193 |
with gr.Column(scale=2):
|
| 194 |
+
image_input = gr.Image(type="numpy", label="Optional (blank = text-to-image)", elem_id="input_image")
|
| 195 |
prompt_input = gr.Textbox(label="Prompt", value="A beautiful waterfall in a lush jungle, cinematic.", lines=3)
|
| 196 |
duration_input = gr.Slider(
|
| 197 |
minimum=round(MIN_FRAMES_MODEL/FIXED_FPS, 1),
|
|
|
|
| 231 |
example_image_path = os.path.join(os.path.dirname(__file__), "examples/i2v_input.JPG")
|
| 232 |
gr.Examples(
|
| 233 |
examples=[
|
| 234 |
+
[example_image_path, "The cat removes the glasses from its eyes.", 1088, 800, 1.5],
|
| 235 |
[None, "A cinematic shot of a boat sailing on a calm sea at sunset.", 704, 1280, 2.0],
|
| 236 |
[None, "Drone footage flying over a futuristic city with flying cars.", 704, 1280, 2.0],
|
| 237 |
],
|