Sa-m commited on
Commit
48e6ba5
1 Parent(s): b3ce859

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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="pil", label="Original Image")
12
- output = gr.outputs.Image(type="pil", label="Output Image")
 
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 ',)