Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,15 +4,12 @@ import numpy as np
|
|
4 |
import fitz # PyMuPDF
|
5 |
import spaces
|
6 |
|
7 |
-
import tensorrt as trt
|
8 |
-
|
9 |
-
print(trt.__version__)
|
10 |
|
11 |
# Load the trained model
|
12 |
|
13 |
|
14 |
|
15 |
-
model = YOLO("best.
|
16 |
|
17 |
|
18 |
# Define the class indices for figures and tables
|
|
|
4 |
import fitz # PyMuPDF
|
5 |
import spaces
|
6 |
|
|
|
|
|
|
|
7 |
|
8 |
# Load the trained model
|
9 |
|
10 |
|
11 |
|
12 |
+
model = YOLO("best.pt")
|
13 |
|
14 |
|
15 |
# Define the class indices for figures and tables
|