Spaces:
Runtime error
Runtime error
Commit
·
0937600
1
Parent(s):
3d48efa
app.py
CHANGED
@@ -45,8 +45,9 @@ def anim(f_promt, s_promt, stability_key):
|
|
45 |
|
46 |
# Render each frame of animation
|
47 |
for idx, frame in enumerate(animator.render()):
|
48 |
-
|
49 |
-
|
|
|
50 |
yield file_path # Yield the path to the generated frame
|
51 |
|
52 |
with gr.Blocks() as demo:
|
|
|
45 |
|
46 |
# Render each frame of animation
|
47 |
for idx, frame in enumerate(animator.render()):
|
48 |
+
frames = f"frame_{idx:05d}.png"
|
49 |
+
file_path = "./output/"+frames
|
50 |
+
frame.save(file_path)
|
51 |
yield file_path # Yield the path to the generated frame
|
52 |
|
53 |
with gr.Blocks() as demo:
|