lev1 commited on
Commit
eb37f03
1 Parent(s): 7fe2981

From GIF to MP4

Browse files
Files changed (2) hide show
  1. app_pose.py +1 -1
  2. model.py +1 -1
app_pose.py CHANGED
@@ -27,7 +27,7 @@ def create_demo(model: Model):
27
  prompt = gr.Textbox(label='Prompt')
28
  run_button = gr.Button(label='Run')
29
  with gr.Column():
30
- result = gr.Image(label="Generated Video")
31
 
32
  input_video_path.change(on_video_path_update, None, pose_sequence_selector)
33
  gallery_pose_sequence.select(pose_gallery_callback, None, input_video_path)
 
27
  prompt = gr.Textbox(label='Prompt')
28
  run_button = gr.Button(label='Run')
29
  with gr.Column():
30
+ result = gr.Video(label="Generated Video")
31
 
32
  input_video_path.change(on_video_path_update, None, pose_sequence_selector)
33
  gallery_pose_sequence.select(pose_gallery_callback, None, input_video_path)
model.py CHANGED
@@ -186,7 +186,7 @@ class Model:
186
  split_to_chunks=True,
187
  chunk_size=8,
188
  )
189
- return utils.create_gif(result, fps)
190
 
191
  def process_controlnet_canny_db(self,
192
  db_path,
 
186
  split_to_chunks=True,
187
  chunk_size=8,
188
  )
189
+ return utils.create_video(result, fps)
190
 
191
  def process_controlnet_canny_db(self,
192
  db_path,