freealise commited on
Commit
46a90a9
·
verified ·
1 Parent(s): 3ab2420

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -87,10 +87,10 @@ def get_frames(video_in, step, name, resize_w):
87
 
88
  def create_video(frames, fps, type):
89
  print("building video result")
90
- clip = ImageSequenceClip(frames, fps=fps, transparent=True)
91
- clip.write_videofile(type + "_result.webm", fps=fps, codec="libvpx-vp9", audio=False)
92
 
93
- return type + "_result.webm"
94
 
95
 
96
  def infer(url_in,interpolation,fps_output,resize_n,winsize,o_flow):
@@ -241,9 +241,9 @@ with gr.Blocks() as demo:
241
  submit_btn = gr.Button("Submit")
242
 
243
  with gr.Column():
244
- video_output = gr.Video()
245
  file_output = gr.File()
246
- depth_output = gr.Video()
247
 
248
  gr.Examples(
249
  examples=[["./examples/streetview.mp4", 1, 0, 256, 15, True]],
 
87
 
88
  def create_video(frames, fps, type):
89
  print("building video result")
90
+ clip = ImageSequenceClip(frames, fps=fps)
91
+ clip.write_gif(type + "_result.gif", fps=fps)
92
 
93
+ return type + "_result.gif"
94
 
95
 
96
  def infer(url_in,interpolation,fps_output,resize_n,winsize,o_flow):
 
241
  submit_btn = gr.Button("Submit")
242
 
243
  with gr.Column():
244
+ video_output = gr.Image()
245
  file_output = gr.File()
246
+ depth_output = gr.Image()
247
 
248
  gr.Examples(
249
  examples=[["./examples/streetview.mp4", 1, 0, 256, 15, True]],