Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ print("Đang khởi tạo PaddleOCR (Coordinate Sync Mode)...")
|
|
| 21 |
|
| 22 |
try:
|
| 23 |
ocr = PaddleOCR(use_textline_orientation=False, use_doc_orientation_classify=False,
|
| 24 |
-
use_doc_unwarping=False, lang='ch', ocr_version='PP-
|
| 25 |
except Exception as e:
|
| 26 |
print(f"Lỗi khởi tạo: {e}. Chuyển về chế độ mặc định.")
|
| 27 |
ocr = PaddleOCR(lang='ch')
|
|
|
|
| 21 |
|
| 22 |
try:
|
| 23 |
ocr = PaddleOCR(use_textline_orientation=False, use_doc_orientation_classify=False,
|
| 24 |
+
use_doc_unwarping=False, lang='ch', ocr_version='PP-OCRv5')
|
| 25 |
except Exception as e:
|
| 26 |
print(f"Lỗi khởi tạo: {e}. Chuyển về chế độ mặc định.")
|
| 27 |
ocr = PaddleOCR(lang='ch')
|