zliang commited on
Commit
c5aff5a
·
verified ·
1 Parent(s): 8ab0207

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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