freealise commited on
Commit
e23cd3b
·
verified ·
1 Parent(s): 5792f00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -288,11 +288,11 @@ with gr.Blocks() as demo:
288
  files_orig = gr.File(file_count="multiple", file_types=['image', '.mp4'])
289
  files_input = gr.File(file_count="multiple", visible=False)
290
  gallery_input = gr.Gallery(label="Slideshow", preview=True, columns=8192, interactive=False)
291
- r_bg = gr.Checkbox(label="Remove background", value=True)
292
  with gr.Accordion(label="Max differences for background", open=False):
293
  mh = gr.Slider(minimum=0, maximum=180, step=1, value=180, label="Hue")
294
  ms = gr.Slider(minimum=0, maximum=255, step=1, value=255, label="Saturation")
295
  md = gr.Slider(minimum=0, maximum=255, step=1, value=12, label="Lightness")
 
296
  files_orig.upload(fn=loadf, inputs=[files_orig, r_bg, mh, ms, md], outputs=[files_input, gallery_input])
297
 
298
  with gr.Row():
 
288
  files_orig = gr.File(file_count="multiple", file_types=['image', '.mp4'])
289
  files_input = gr.File(file_count="multiple", visible=False)
290
  gallery_input = gr.Gallery(label="Slideshow", preview=True, columns=8192, interactive=False)
 
291
  with gr.Accordion(label="Max differences for background", open=False):
292
  mh = gr.Slider(minimum=0, maximum=180, step=1, value=180, label="Hue")
293
  ms = gr.Slider(minimum=0, maximum=255, step=1, value=255, label="Saturation")
294
  md = gr.Slider(minimum=0, maximum=255, step=1, value=12, label="Lightness")
295
+ r_bg = gr.Checkbox(label="Remove background", value=True)
296
  files_orig.upload(fn=loadf, inputs=[files_orig, r_bg, mh, ms, md], outputs=[files_input, gallery_input])
297
 
298
  with gr.Row():