Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ interface = gr.Interface(
|
|
| 17 |
theme="soft"
|
| 18 |
)
|
| 19 |
|
| 20 |
-
@spaces.GPU(duration=
|
| 21 |
def generate_video(image):
|
| 22 |
"""
|
| 23 |
Generates a video from an input image using the pipeline.
|
|
@@ -28,7 +28,7 @@ def generate_video(image):
|
|
| 28 |
Returns:
|
| 29 |
A list of PIL Images representing the video frames.
|
| 30 |
"""
|
| 31 |
-
video_frames = pipeline(image=image).images
|
| 32 |
|
| 33 |
return video_frames
|
| 34 |
|
|
|
|
| 17 |
theme="soft"
|
| 18 |
)
|
| 19 |
|
| 20 |
+
@spaces.GPU(duration=250)
|
| 21 |
def generate_video(image):
|
| 22 |
"""
|
| 23 |
Generates a video from an input image using the pipeline.
|
|
|
|
| 28 |
Returns:
|
| 29 |
A list of PIL Images representing the video frames.
|
| 30 |
"""
|
| 31 |
+
video_frames = pipeline(image=image, num_inference_steps=20).images
|
| 32 |
|
| 33 |
return video_frames
|
| 34 |
|