File size: 405 Bytes
56a9e12 a58c851 f03f961 a58c851 f03f961 a58c851 9112e74 b882389 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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() |