Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,10 @@ import gradio as gr
|
|
2 |
import os
|
3 |
|
4 |
os.system('git clone https://github.com/WongKinYiu/yolov7.git')
|
|
|
|
|
5 |
def detect(inp):
|
|
|
6 |
return inp
|
7 |
|
8 |
inp = gr.inputs.Image(type="pil", label="Original Image")
|
|
|
2 |
import os
|
3 |
|
4 |
os.system('git clone https://github.com/WongKinYiu/yolov7.git')
|
5 |
+
|
6 |
+
|
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 |
return inp
|
10 |
|
11 |
inp = gr.inputs.Image(type="pil", label="Original Image")
|