Spaces:
Sleeping
Sleeping
xiaoming32236046
commited on
Commit
•
a4eba0a
1
Parent(s):
6ca3d1e
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from PIL import Image
|
|
4 |
import io
|
5 |
|
6 |
# 加载 YOLOv8 模型
|
7 |
-
model = YOLO('
|
8 |
|
9 |
def detect_objects(image):
|
10 |
# 使用 YOLOv8 模型进行预测
|
|
|
4 |
import io
|
5 |
|
6 |
# 加载 YOLOv8 模型
|
7 |
+
model = YOLO('best.pt') # 替换为您的模型文件路径
|
8 |
|
9 |
def detect_objects(image):
|
10 |
# 使用 YOLOv8 模型进行预测
|