File size: 286 Bytes
f698c4b
 
 
 
 
 
 
 
0a345cb
f698c4b
 
0a345cb
f698c4b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

def echo_image(image):
    return image

demo = gr.Interface(
    fn=echo_image, 
    inputs=[
        gr.components.Image(shape=(512, 512)), 
    ], 
    outputs=[
        gr.components.Image(shape=(512, 512), label="output-1")
    ], 
)

demo.launch(inline=False)