besarismaili commited on
Commit
780a8d7
·
1 Parent(s): 753949f
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -111,8 +111,10 @@ def anim(f_promt, s_promt, stability_key, cadence_interp, width ,height ,sampler
111
  for _ in tqdm(animator.render(), total=args.max_frames):
112
  pass
113
 
114
- return create_video_from_frames(animator.out_dir, "video.mp4", fps=24)
 
115
 
 
116
 
117
  with gr.Blocks() as demo:
118
  gr.Markdown("Stability Animation 1")
 
111
  for _ in tqdm(animator.render(), total=args.max_frames):
112
  pass
113
 
114
+ video_path = os.path.join(animator.out_dir, "video.mp4")
115
+ create_video_from_frames(animator.out_dir, video_path, fps=24)
116
 
117
+ return video_path
118
 
119
  with gr.Blocks() as demo:
120
  gr.Markdown("Stability Animation 1")