freealise commited on
Commit
f6676b6
1 Parent(s): 947c5e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def do_interpolation(frame1, frame2, interpolation):
32
  input_frames = [frame1, frame2]
33
  frames = list(
34
  util.interpolate_recursively_from_files(
35
- input_frames, int(math.log2(interpolation)), interpolator))
36
 
37
  #print(frames)
38
  mediapy.write_video(f"{frame1}_to_{frame2}_out.mp4", frames, fps=25)
@@ -178,7 +178,7 @@ with gr.Blocks() as demo:
178
  gr.Examples(
179
  examples=[["./examples/streetview.mp4", 4, 1]],
180
  fn=infer,
181
- inputs=[url_input,interpolation,fps_output],
182
  outputs=[video_output,file_output],
183
  cache_examples=True
184
  )
 
32
  input_frames = [frame1, frame2]
33
  frames = list(
34
  util.interpolate_recursively_from_files(
35
+ input_frames, int(interpolation), interpolator))
36
 
37
  #print(frames)
38
  mediapy.write_video(f"{frame1}_to_{frame2}_out.mp4", frames, fps=25)
 
178
  gr.Examples(
179
  examples=[["./examples/streetview.mp4", 4, 1]],
180
  fn=infer,
181
+ inputs=[url_input,interpolation_slider,fps_output_slider],
182
  outputs=[video_output,file_output],
183
  cache_examples=True
184
  )