Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -15,7 +15,6 @@ ocr_fa = PaddleOCR(user_angle_cls=True, lang="fa")
|
|
15 |
|
16 |
#ocr_ch = PaddleOCR(det_model_dir="models/det/ch/ch_PP-OCRv4_det_infer", rec_model_dir="models/rec/ch/ch_PP-OCRv4_rec_infer", cls_model_dir="models/cls/ch_ppocr_mobile_v2.0_cls_infer", rec_char_dict_path="models/dict/ppocr_keys_v1.txt", lang="ch")
|
17 |
|
18 |
-
|
19 |
def perform_ocr(img, lang):
|
20 |
|
21 |
if lang == "English":
|
|
|
15 |
|
16 |
#ocr_ch = PaddleOCR(det_model_dir="models/det/ch/ch_PP-OCRv4_det_infer", rec_model_dir="models/rec/ch/ch_PP-OCRv4_rec_infer", cls_model_dir="models/cls/ch_ppocr_mobile_v2.0_cls_infer", rec_char_dict_path="models/dict/ppocr_keys_v1.txt", lang="ch")
|
17 |
|
|
|
18 |
def perform_ocr(img, lang):
|
19 |
|
20 |
if lang == "English":
|