wildoctopus's picture
Update app.py
a58c851 verified
raw
history blame
405 Bytes
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()