Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def generate_video(image_path, seed):
|
|
27 |
|
28 |
# Export the frames to a video file
|
29 |
output_video_path = "generated.mp4"
|
30 |
-
export_to_video(frames, output_video_path, fps=
|
31 |
|
32 |
return output_video_path
|
33 |
|
@@ -36,7 +36,7 @@ iface = gr.Interface(
|
|
36 |
fn=generate_video,
|
37 |
inputs=[
|
38 |
gr.Image(type="filepath", label="Upload Image"),
|
39 |
-
gr.Number(label="Seed", value=
|
40 |
],
|
41 |
outputs=gr.Video(label="Generated Video"),
|
42 |
title="Stable Video Diffusion",
|
|
|
27 |
|
28 |
# Export the frames to a video file
|
29 |
output_video_path = "generated.mp4"
|
30 |
+
export_to_video(frames, output_video_path, fps=25)
|
31 |
|
32 |
return output_video_path
|
33 |
|
|
|
36 |
fn=generate_video,
|
37 |
inputs=[
|
38 |
gr.Image(type="filepath", label="Upload Image"),
|
39 |
+
gr.Number(label="Seed", value=666666)
|
40 |
],
|
41 |
outputs=gr.Video(label="Generated Video"),
|
42 |
title="Stable Video Diffusion",
|