Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,9 @@ def detect(inp):
|
|
8 |
os.system('python ./yolov7/detect.py --weights ./yolov7/runs/train/yolov7/weights/best.pt --conf 0.25 --img-size 640 --source f{inp} "--project","./yolov7/runs/detect ')
|
9 |
return inp
|
10 |
|
11 |
-
inp = gr.inputs.Image(type="
|
12 |
-
output = gr.outputs.
|
|
|
13 |
|
14 |
|
15 |
io=gr.Interface(fn=detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7 ',)
|
|
|
8 |
os.system('python ./yolov7/detect.py --weights ./yolov7/runs/train/yolov7/weights/best.pt --conf 0.25 --img-size 640 --source f{inp} "--project","./yolov7/runs/detect ')
|
9 |
return inp
|
10 |
|
11 |
+
inp = gr.inputs.Image(type="filepath", label="Input")
|
12 |
+
output = gr.outputs.Textbox()
|
13 |
+
#Image(type="filepath", label="Output")
|
14 |
|
15 |
|
16 |
io=gr.Interface(fn=detect, inputs=inp, outputs=output, title='Pot Hole Detection With Custom YOLOv7 ',)
|