Spaces:
Running
Running
Commit
·
5d9ecaa
1
Parent(s):
760f6ef
changed to base model
Browse files- ui/handlers.py +1 -1
ui/handlers.py
CHANGED
|
@@ -16,7 +16,7 @@ def initialize_ocr_processor():
|
|
| 16 |
global ocr_processor
|
| 17 |
try:
|
| 18 |
logger.info("Initializing OCR processor...")
|
| 19 |
-
ocr_processor = OCRProcessor(model_name="microsoft/Florence-2-
|
| 20 |
return True
|
| 21 |
except Exception as e:
|
| 22 |
logger.error(f"Failed to initialize OCR processor: {str(e)}")
|
|
|
|
| 16 |
global ocr_processor
|
| 17 |
try:
|
| 18 |
logger.info("Initializing OCR processor...")
|
| 19 |
+
ocr_processor = OCRProcessor(model_name="microsoft/Florence-2-base")
|
| 20 |
return True
|
| 21 |
except Exception as e:
|
| 22 |
logger.error(f"Failed to initialize OCR processor: {str(e)}")
|