paresh95 commited on
Commit
a5027b3
·
1 Parent(s): b55968c

PS|Gradio with image files

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(share=True)
 
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()