Commit
·
f550b47
1
Parent(s):
9508303
create echo_image
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def echo_image(image):
|
2 |
+
return image
|
3 |
+
|
4 |
+
demo = gr.Interface(
|
5 |
+
fn=echo_image,
|
6 |
+
inputs=[
|
7 |
+
gr.components.Image(type="pil", shape=(512, 512)),
|
8 |
+
],
|
9 |
+
outputs=[
|
10 |
+
gr.components.Image(type="pil", shape=(512, 512), label="output-1")
|
11 |
+
],
|
12 |
+
)
|
13 |
+
|
14 |
+
demo.launch(inline=False)
|