Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,12 @@
|
|
|
|
1 |
os.system("pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox")
|
2 |
-
|
3 |
import gradio as gr
|
4 |
import tempfile
|
5 |
-
import os
|
6 |
import track
|
7 |
import shutil
|
8 |
from pathlib import Path
|
9 |
from yolov5 import detect
|
10 |
from PIL import Image
|
11 |
-
print("----------")
|
12 |
-
os.system("pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox")
|
13 |
-
|
14 |
|
15 |
# 目标检测
|
16 |
def Detect(image):
|
|
|
1 |
+
import os
|
2 |
os.system("pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox")
|
|
|
3 |
import gradio as gr
|
4 |
import tempfile
|
|
|
5 |
import track
|
6 |
import shutil
|
7 |
from pathlib import Path
|
8 |
from yolov5 import detect
|
9 |
from PIL import Image
|
|
|
|
|
|
|
10 |
|
11 |
# 目标检测
|
12 |
def Detect(image):
|