File size: 289 Bytes
f550b47
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)