Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ pipeline = StableVideoDiffusionPipeline.from_pretrained(
|
|
| 13 |
)
|
| 14 |
pipeline.to(device)
|
| 15 |
|
| 16 |
-
@spaces.
|
| 17 |
def generate_video(image_path, seed):
|
| 18 |
# Load and preprocess the image
|
| 19 |
image = load_image(image_path)
|
|
@@ -41,9 +41,6 @@ iface = gr.Interface(
|
|
| 41 |
outputs=gr.Video(label="Generated Video"),
|
| 42 |
title="Stable Video Diffusion",
|
| 43 |
description="Generate a video from an uploaded image using Stable Video Diffusion.",
|
| 44 |
-
examples=[
|
| 45 |
-
["image.jpeg", 42],
|
| 46 |
-
],
|
| 47 |
)
|
| 48 |
|
| 49 |
# Launch the interface
|
|
|
|
| 13 |
)
|
| 14 |
pipeline.to(device)
|
| 15 |
|
| 16 |
+
@spaces.GPU(duration=120)
|
| 17 |
def generate_video(image_path, seed):
|
| 18 |
# Load and preprocess the image
|
| 19 |
image = load_image(image_path)
|
|
|
|
| 41 |
outputs=gr.Video(label="Generated Video"),
|
| 42 |
title="Stable Video Diffusion",
|
| 43 |
description="Generate a video from an uploaded image using Stable Video Diffusion.",
|
|
|
|
|
|
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
# Launch the interface
|