lakshman111's picture
import gradio
770507b
raw
history blame
310 Bytes
import gradio as gr
def echo_image(image):
return image
demo = gr.Interface(
fn=echo_image,
inputs=[
gr.components.Image(type="pil", shape=(512, 512)),
],
outputs=[
gr.components.Image(type="pil", shape=(512, 512), label="output-1")
],
)
demo.launch(inline=False)