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