Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import spaces
|
|
7 |
# Load the trained model
|
8 |
|
9 |
model_path = 'best.engine' # Replace with the path to your trained .pt file
|
10 |
-
model = YOLO(model_path)
|
11 |
|
12 |
# Define the class indices for figures and tables
|
13 |
figure_class_index = 3 # class index for figures
|
|
|
7 |
# Load the trained model
|
8 |
|
9 |
model_path = 'best.engine' # Replace with the path to your trained .pt file
|
10 |
+
model = YOLO(model_path,task="classify")
|
11 |
|
12 |
# Define the class indices for figures and tables
|
13 |
figure_class_index = 3 # class index for figures
|