Spaces:
Runtime error
Runtime error
jeremyrmanning
commited on
Commit
•
5d43c4a
1
Parent(s):
6ce4b91
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def generate_images(text, width=256, height=256, steps=50, num_images=2,
|
|
44 |
return generated_images
|
45 |
|
46 |
|
47 |
-
def generate_interpolation(text, fps=
|
48 |
images = []
|
49 |
frames = []
|
50 |
for i, t in enumerate(text.split(', ')):
|
@@ -55,7 +55,7 @@ def generate_interpolation(text, fps=5):
|
|
55 |
frames.append(f'frame_{i}.png')
|
56 |
images[-1].save(frames[-1])
|
57 |
|
58 |
-
vid = list(util.interpolate_recursively_from_files(frames,
|
59 |
mediapy.write_video("out.mp4", vid, fps=fps)
|
60 |
return "out.mp4"
|
61 |
|
|
|
44 |
return generated_images
|
45 |
|
46 |
|
47 |
+
def generate_interpolation(text, fps=7, steps=4):
|
48 |
images = []
|
49 |
frames = []
|
50 |
for i, t in enumerate(text.split(', ')):
|
|
|
55 |
frames.append(f'frame_{i}.png')
|
56 |
images[-1].save(frames[-1])
|
57 |
|
58 |
+
vid = list(util.interpolate_recursively_from_files(frames, steps, interpolator))
|
59 |
mediapy.write_video("out.mp4", vid, fps=fps)
|
60 |
return "out.mp4"
|
61 |
|