Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,10 @@ from pathlib import Path
|
|
7 |
from yolov5 import detect
|
8 |
from PIL import Image
|
9 |
|
|
|
|
|
|
|
|
|
10 |
# 目标检测
|
11 |
def Detect(image):
|
12 |
# 创建临时文件夹
|
|
|
7 |
from yolov5 import detect
|
8 |
from PIL import Image
|
9 |
|
10 |
+
os.system("pip install Cython")
|
11 |
+
os.system("pip install cython-bbox")
|
12 |
+
|
13 |
+
|
14 |
# 目标检测
|
15 |
def Detect(image):
|
16 |
# 创建临时文件夹
|