freealise commited on
Commit
ec0d6ef
·
verified ·
1 Parent(s): 0c717ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -13,7 +13,6 @@ from PIL import Image
13
  import gradio as gr
14
 
15
  from huggingface_hub import snapshot_download
16
-
17
  from image_tools.sizes import resize_and_crop
18
 
19
 
@@ -276,7 +275,7 @@ with gr.Blocks() as demo:
276
  with gr.Accordion(label="Upload files here", open=True):
277
  files_input = gr.File(file_count="multiple", file_types=['image', '.mp4'])
278
  gallery_input = gr.Gallery(label="Slideshow", preview=True, columns=8192, interactive=False)
279
- files_input.input(fn=loadf, inputs=[files_input], outputs=[files_input, gallery_input])
280
  with gr.Row():
281
  interpolation_slider = gr.Slider(minimum=1, maximum=5, step=1, value=1, label="Interpolation Steps: ")
282
  interpolation = gr.Number(value=1, show_label=False, interactive=False)
 
13
  import gradio as gr
14
 
15
  from huggingface_hub import snapshot_download
 
16
  from image_tools.sizes import resize_and_crop
17
 
18
 
 
275
  with gr.Accordion(label="Upload files here", open=True):
276
  files_input = gr.File(file_count="multiple", file_types=['image', '.mp4'])
277
  gallery_input = gr.Gallery(label="Slideshow", preview=True, columns=8192, interactive=False)
278
+ files_input.upload(fn=loadf, inputs=[files_input], outputs=[files_input, gallery_input])
279
  with gr.Row():
280
  interpolation_slider = gr.Slider(minimum=1, maximum=5, step=1, value=1, label="Interpolation Steps: ")
281
  interpolation = gr.Number(value=1, show_label=False, interactive=False)