Spaces:
Sleeping
Sleeping
TheKnight115
commited on
Update processor.py
Browse files- processor.py +3 -3
processor.py
CHANGED
@@ -44,9 +44,9 @@ class_colors = {
|
|
44 |
5: (0, 255, 255), # Yellow (Person)
|
45 |
}
|
46 |
|
47 |
-
#
|
48 |
-
|
49 |
-
|
50 |
|
51 |
# Load YOLO model
|
52 |
# Ensure the path to the model is correct
|
|
|
44 |
5: (0, 255, 255), # Yellow (Person)
|
45 |
}
|
46 |
|
47 |
+
# Load the OCR model
|
48 |
+
processor = AutoProcessor.from_pretrained("stepfun-ai/GOT-OCR2_0", trust_remote_code=True)
|
49 |
+
model_ocr = AutoModel.from_pretrained("stepfun-ai/GOT-OCR2_0", trust_remote_code=True).to('cuda')
|
50 |
|
51 |
# Load YOLO model
|
52 |
# Ensure the path to the model is correct
|