Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,13 +2,13 @@ import gradio as gr
|
|
| 2 |
import numpy as np
|
| 3 |
import fitz # PyMuPDF
|
| 4 |
import spaces
|
| 5 |
-
from ultralytics import
|
| 6 |
|
| 7 |
# Load the trained model
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
-
model =
|
| 12 |
|
| 13 |
|
| 14 |
# Define the class indices for figures and tables
|
|
|
|
| 2 |
import numpy as np
|
| 3 |
import fitz # PyMuPDF
|
| 4 |
import spaces
|
| 5 |
+
from ultralytics import YOLO
|
| 6 |
|
| 7 |
# Load the trained model
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
+
model = YOLO("best.pt")
|
| 12 |
|
| 13 |
|
| 14 |
# Define the class indices for figures and tables
|