Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ def detect(inp):
|
|
19 |
|
20 |
|
21 |
inp = gr.inputs.Image(type="filepath", label="Input")
|
22 |
-
|
23 |
-
|
24 |
#.outputs.Textbox()
|
25 |
|
26 |
io=gr.Interface(fn=detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7 ',examples=[["Examples/img-300_jpg.rf.6b7b035dff1cda092ce3dc22be8d0135.jpg"]])
|
|
|
19 |
|
20 |
|
21 |
inp = gr.inputs.Image(type="filepath", label="Input")
|
22 |
+
#output=gr.outputs.Image(type="pil", label="Output Image")
|
23 |
+
output = gr.outputs.Image(type="filepath", label="Output")
|
24 |
#.outputs.Textbox()
|
25 |
|
26 |
io=gr.Interface(fn=detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7 ',examples=[["Examples/img-300_jpg.rf.6b7b035dff1cda092ce3dc22be8d0135.jpg"]])
|