Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -38,13 +38,13 @@ def generate_video(image_path, seed, fps, duration, use_duration):
|
|
38 |
# Create the Gradio interface
|
39 |
with gr.Blocks() as demo:
|
40 |
gr.Markdown("# Stable Video Diffusion")
|
41 |
-
gr.Markdown("Generate
|
42 |
|
43 |
with gr.Row():
|
44 |
with gr.Column():
|
45 |
image_input = gr.Image(type="filepath", label="Upload Image")
|
46 |
seed_input = gr.Number(label="Seed", value=666666)
|
47 |
-
use_duration_toggle = gr.Checkbox(label="Use Duration
|
48 |
fps_input = gr.Number(label="FPS", value=25, minimum=1, maximum=60, visible=True)
|
49 |
duration_input = gr.Number(label="Duration (seconds)", value=1, minimum=1, maximum=60, visible=False)
|
50 |
generate_button = gr.Button("Generate Video")
|
@@ -52,7 +52,8 @@ with gr.Blocks() as demo:
|
|
52 |
video_output = gr.Video(label="Generated Video")
|
53 |
|
54 |
with gr.Row():
|
55 |
-
example_image = gr.Image(
|
|
|
56 |
example_video = gr.Video(value="generated.mp4", label="Example Video")
|
57 |
|
58 |
def toggle_visibility(use_duration):
|
|
|
38 |
# Create the Gradio interface
|
39 |
with gr.Blocks() as demo:
|
40 |
gr.Markdown("# Stable Video Diffusion")
|
41 |
+
gr.Markdown("Generate 25 video frames at 576x1024 ")
|
42 |
|
43 |
with gr.Row():
|
44 |
with gr.Column():
|
45 |
image_input = gr.Image(type="filepath", label="Upload Image")
|
46 |
seed_input = gr.Number(label="Seed", value=666666)
|
47 |
+
use_duration_toggle = gr.Checkbox(label="Use Duration")
|
48 |
fps_input = gr.Number(label="FPS", value=25, minimum=1, maximum=60, visible=True)
|
49 |
duration_input = gr.Number(label="Duration (seconds)", value=1, minimum=1, maximum=60, visible=False)
|
50 |
generate_button = gr.Button("Generate Video")
|
|
|
52 |
video_output = gr.Video(label="Generated Video")
|
53 |
|
54 |
with gr.Row():
|
55 |
+
example_image = gr.Image("https://huggingface.co/spaces/mrcuddle/SDXT-Image-To-Video/blob/main/image.jpeg", label="Example Image")
|
56 |
+
|
57 |
example_video = gr.Video(value="generated.mp4", label="Example Video")
|
58 |
|
59 |
def toggle_visibility(use_duration):
|