Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ os.system('git clone https://github.com/WongKinYiu/yolov7.git')
|
|
5 |
|
6 |
|
7 |
def detect(inp):
|
8 |
-
os.system('python
|
9 |
otp=inp.split('/')[2]
|
10 |
return f"./yolov7/runs/detect/exp/*"
|
11 |
|
|
|
5 |
|
6 |
|
7 |
def detect(inp):
|
8 |
+
os.system('python yolov7/detect.py --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/*"
|
11 |
|