import gradio as gr | |
with gr.Blocks() as demo: | |
gr.Markdown("# Image Display Demo") | |
with gr.Row(): | |
with gr.Column(): | |
img_input = gr.Image(type="pil", label="Upload Image") | |
with gr.Column(): | |
img_output = gr.Image(label="Output Image") | |
img_input.change( | |
fn=lambda x: x, | |
inputs=img_input, | |
outputs=img_output | |
) | |
demo.launch() |