Spaces:
Runtime error
Runtime error
Commit
·
bafe3e0
1
Parent(s):
89fad2f
app.py
CHANGED
@@ -42,13 +42,10 @@ def anim(f_promt, s_promt, stability_key):
|
|
42 |
)
|
43 |
|
44 |
# Render each frame of animation
|
45 |
-
file_paths = []
|
46 |
for idx, frame in enumerate(animator.render()):
|
47 |
file_path = f"frame_{idx:05d}.png"
|
48 |
frame.save(file_path)
|
49 |
-
|
50 |
-
|
51 |
-
return file_paths
|
52 |
|
53 |
with gr.Blocks() as demo:
|
54 |
gr.Markdown("Stability Animation")
|
|
|
42 |
)
|
43 |
|
44 |
# Render each frame of animation
|
|
|
45 |
for idx, frame in enumerate(animator.render()):
|
46 |
file_path = f"frame_{idx:05d}.png"
|
47 |
frame.save(file_path)
|
48 |
+
yield file_path # Yield the path to the generated frame
|
|
|
|
|
49 |
|
50 |
with gr.Blocks() as demo:
|
51 |
gr.Markdown("Stability Animation")
|