Update app.py
Browse files
app.py
CHANGED
|
@@ -27,8 +27,8 @@ def detect(inp):
|
|
| 27 |
return Image.fromarray(results.imgs[0])
|
| 28 |
|
| 29 |
|
| 30 |
-
inp = gr.
|
| 31 |
-
output = gr.
|
| 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.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')
|