Sa-m commited on
Commit
728ab4f
1 Parent(s): 6769671

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,8 +27,8 @@ def detect(inp):
27
  return Image.fromarray(results.imgs[0])
28
 
29
 
30
- inp = gr.Image(type="pil", label="Original Image")
31
- output = gr.Image(type="pil", label="Output Image")
32
 
33
 
34
  io=gr.Interface(fn=detect, inputs=inp, outputs=output, title='Party Symbol Detection',examples=['Content/4.jpg','Content/10.jpg','Content/18.jpg'],theme='peach')
27
  return Image.fromarray(results.imgs[0])
28
 
29
 
30
+ inp = gr.inputs.Image(type="pil", label="Original Image")
31
+ output = gr.outputs.Image(type="pil", label="Output Image")
32
 
33
 
34
  io=gr.Interface(fn=detect, inputs=inp, outputs=output, title='Party Symbol Detection',examples=['Content/4.jpg','Content/10.jpg','Content/18.jpg'],theme='peach')