Spaces:
Sleeping
Sleeping
paresh95
commited on
Commit
·
a5027b3
1
Parent(s):
b55968c
PS|Gradio with image files
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ def identity_function(input_image):
|
|
| 5 |
|
| 6 |
iface = gr.Interface(
|
| 7 |
fn=identity_function,
|
| 8 |
-
inputs=gr.inputs.Image(),
|
| 9 |
-
outputs=gr.outputs.Image()
|
| 10 |
)
|
| 11 |
|
| 12 |
-
iface.launch(
|
|
|
|
| 5 |
|
| 6 |
iface = gr.Interface(
|
| 7 |
fn=identity_function,
|
| 8 |
+
inputs=gr.inputs.Image(type="pil"),
|
| 9 |
+
outputs=gr.outputs.Image(type="pil")
|
| 10 |
)
|
| 11 |
|
| 12 |
+
iface.launch()
|