Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,13 @@ import os
|
|
6 |
|
7 |
os.system("pip install -q git+https://github.com/THU-MIG/yolov10.git")
|
8 |
|
9 |
-
from ultralytics import
|
10 |
|
11 |
# Load the trained model
|
12 |
|
13 |
|
14 |
|
15 |
-
model =
|
16 |
|
17 |
|
18 |
# Define the class indices for figures and tables
|
|
|
6 |
|
7 |
os.system("pip install -q git+https://github.com/THU-MIG/yolov10.git")
|
8 |
|
9 |
+
from ultralytics import YOLOv10
|
10 |
|
11 |
# Load the trained model
|
12 |
|
13 |
|
14 |
|
15 |
+
model = YOLOv10("best.pt")
|
16 |
|
17 |
|
18 |
# Define the class indices for figures and tables
|