Update app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ with gr.Blocks() as demo:
|
|
178 |
gallery_input = gr.Gallery(label="Slides", preview=True, columns=8192)
|
179 |
#video_input.change(fn=loadurl, inputs=[video_input], outputs=[url_input])
|
180 |
with gr.Row():
|
181 |
-
interpolation_slider = gr.Slider(minimum=1, maximum=5, step=1, value=
|
182 |
interpolation = gr.Number(value=1, show_label=False, interactive=False)
|
183 |
interpolation_slider.change(fn=logscale, inputs=[interpolation_slider], outputs=[interpolation])
|
184 |
with gr.Row():
|
@@ -192,7 +192,9 @@ with gr.Blocks() as demo:
|
|
192 |
file_output = gr.File()
|
193 |
|
194 |
gr.Examples(
|
195 |
-
examples=[[
|
|
|
|
|
196 |
fn=infer,
|
197 |
inputs=[gallery_input, interpolation_slider, fps_output_slider],
|
198 |
outputs=[video_output, file_output],
|
|
|
178 |
gallery_input = gr.Gallery(label="Slides", preview=True, columns=8192)
|
179 |
#video_input.change(fn=loadurl, inputs=[video_input], outputs=[url_input])
|
180 |
with gr.Row():
|
181 |
+
interpolation_slider = gr.Slider(minimum=1, maximum=5, step=1, value=1, label="Interpolation Steps: ")
|
182 |
interpolation = gr.Number(value=1, show_label=False, interactive=False)
|
183 |
interpolation_slider.change(fn=logscale, inputs=[interpolation_slider], outputs=[interpolation])
|
184 |
with gr.Row():
|
|
|
192 |
file_output = gr.File()
|
193 |
|
194 |
gr.Examples(
|
195 |
+
examples=[[
|
196 |
+
[["./examples/0.png","0"], ["./examples/1.png","1"], ["./examples/2.png","2"], ["./examples/3.png","3"], ["./examples/4.png","4"]],
|
197 |
+
1, 0]],
|
198 |
fn=infer,
|
199 |
inputs=[gallery_input, interpolation_slider, fps_output_slider],
|
200 |
outputs=[video_output, file_output],
|