Update app.py
Browse files
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(
|
| 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,
|
| 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 |
)
|