kyleleey commited on
Commit
35c5809
1 Parent(s): 429b44e

update gradio Image interface

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -613,7 +613,7 @@ def run_demo():
613
  gr.Markdown(_DESCRIPTION)
614
  with gr.Row(variant='panel'):
615
  with gr.Column(scale=1):
616
- input_image = gr.Image(type='pil', image_mode='RGBA', height=256, label='Input image', tool=None)
617
 
618
  example_folder = os.path.join(os.path.dirname(__file__), "./example_images")
619
  example_fns = [os.path.join(example_folder, example) for example in os.listdir(example_folder)]
@@ -626,8 +626,8 @@ def run_demo():
626
  examples_per_page=30
627
  )
628
  with gr.Column(scale=1):
629
- processed_image = gr.Image(type='pil', label="Processed Image", interactive=False, height=256, tool=None, image_mode='RGB', elem_id="disp_image")
630
- processed_image_highres = gr.Image(type='pil', image_mode='RGB', visible=False, tool=None)
631
 
632
  with gr.Accordion('Advanced options', open=True):
633
  with gr.Row():
 
613
  gr.Markdown(_DESCRIPTION)
614
  with gr.Row(variant='panel'):
615
  with gr.Column(scale=1):
616
+ input_image = gr.Image(type='pil', image_mode='RGBA', height=256, label='Input image')
617
 
618
  example_folder = os.path.join(os.path.dirname(__file__), "./example_images")
619
  example_fns = [os.path.join(example_folder, example) for example in os.listdir(example_folder)]
 
626
  examples_per_page=30
627
  )
628
  with gr.Column(scale=1):
629
+ processed_image = gr.Image(type='pil', label="Processed Image", interactive=False, height=256, image_mode='RGB', elem_id="disp_image")
630
+ processed_image_highres = gr.Image(type='pil', image_mode='RGB', visible=False)
631
 
632
  with gr.Accordion('Advanced options', open=True):
633
  with gr.Row():