Spaces:
Running
on
L4
Running
on
L4
flamehaze1115
commited on
Update gradio_app.py
Browse files- gradio_app.py +3 -3
gradio_app.py
CHANGED
@@ -280,7 +280,7 @@ def run_demo():
|
|
280 |
gr.Markdown(_DESCRIPTION)
|
281 |
with gr.Row(variant='panel'):
|
282 |
with gr.Column(scale=1):
|
283 |
-
input_image = gr.Image(type='pil', image_mode='RGBA', height=320, label='Input image'
|
284 |
|
285 |
example_folder = os.path.join(os.path.dirname(__file__), "./example_images")
|
286 |
example_fns = [os.path.join(example_folder, example) for example in os.listdir(example_folder)]
|
@@ -293,8 +293,8 @@ def run_demo():
|
|
293 |
examples_per_page=30
|
294 |
)
|
295 |
with gr.Column(scale=1):
|
296 |
-
processed_image = gr.Image(type='pil', label="Processed Image", interactive=False, height=320,
|
297 |
-
processed_image_highres = gr.Image(type='pil', image_mode='RGBA', visible=False
|
298 |
|
299 |
with gr.Accordion('Advanced options', open=True):
|
300 |
with gr.Row():
|
|
|
280 |
gr.Markdown(_DESCRIPTION)
|
281 |
with gr.Row(variant='panel'):
|
282 |
with gr.Column(scale=1):
|
283 |
+
input_image = gr.Image(type='pil', image_mode='RGBA', height=320, label='Input image')
|
284 |
|
285 |
example_folder = os.path.join(os.path.dirname(__file__), "./example_images")
|
286 |
example_fns = [os.path.join(example_folder, example) for example in os.listdir(example_folder)]
|
|
|
293 |
examples_per_page=30
|
294 |
)
|
295 |
with gr.Column(scale=1):
|
296 |
+
processed_image = gr.Image(type='pil', label="Processed Image", interactive=False, height=320, image_mode='RGBA', elem_id="disp_image")
|
297 |
+
processed_image_highres = gr.Image(type='pil', image_mode='RGBA', visible=False)
|
298 |
|
299 |
with gr.Accordion('Advanced options', open=True):
|
300 |
with gr.Row():
|