besarismaili commited on
Commit
0937600
·
1 Parent(s): 3d48efa
Files changed (1) hide show
  1. app.py +3 -2
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
- file_path = f"frame_{idx:05d}.png"
49
- frame.save("./output/"+file_path)
 
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: