Spaces:
Running
Running
Kvikontent
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -18,12 +18,13 @@ def generate_images(prompt, num_images):
|
|
18 |
|
19 |
@spaces.GPU(duration=120)
|
20 |
def generate_videos(images):
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
27 |
|
28 |
def combine_videos(video_clips):
|
29 |
"""Combines video clips into a single video using moviepy."""
|
|
|
18 |
|
19 |
@spaces.GPU(duration=120)
|
20 |
def generate_videos(images):
|
21 |
+
"""Generates videos from a list of images using the video pipeline."""
|
22 |
+
videos = []
|
23 |
+
for image in images:
|
24 |
+
# Wrap the image in a list as expected by the pipeline
|
25 |
+
generated_video = video_pipeline.pipe(images=[image]).images[0]
|
26 |
+
videos.append(generated_video)
|
27 |
+
return videos
|
28 |
|
29 |
def combine_videos(video_clips):
|
30 |
"""Combines video clips into a single video using moviepy."""
|