Sa-m commited on
Commit
13f6999
1 Parent(s): a64df2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,8 @@ os.system('git clone https://github.com/WongKinYiu/yolov7.git')
7
  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
  otp=inp.split('/')[2]
10
- return f"{inp.split('/')[2]}"
 
11
  #f"./yolov7/runs/detect/exp/{otp}"
12
 
13
  inp = gr.inputs.Image(type="filepath", label="Input")
 
7
  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
  otp=inp.split('/')[2]
10
+ return f"./yolov7/runs/detect/exp/{otp}"
11
+ #f"{inp.split('/')[2]}"
12
  #f"./yolov7/runs/detect/exp/{otp}"
13
 
14
  inp = gr.inputs.Image(type="filepath", label="Input")