Spaces:
Build error
Build error
yumikimi381
commited on
Commit
•
b32cc49
1
Parent(s):
daf0288
Upload folder using huggingface_hub
Browse files- ocr_component1.py +1 -1
- requirements.txt +1 -0
ocr_component1.py
CHANGED
@@ -18,7 +18,7 @@ from numpy.typing import NDArray
|
|
18 |
MARGIN_FACTOR = 1.4
|
19 |
class OCRComponent1():
|
20 |
"""
|
21 |
-
This component uses RagFlow as text line detector
|
22 |
Uses DocTR's word detector and text recognizer
|
23 |
"""
|
24 |
def __init__(self,englishflag =False):
|
|
|
18 |
MARGIN_FACTOR = 1.4
|
19 |
class OCRComponent1():
|
20 |
"""
|
21 |
+
This component uses RagFlow as text line detector \\
|
22 |
Uses DocTR's word detector and text recognizer
|
23 |
"""
|
24 |
def __init__(self,englishflag =False):
|
requirements.txt
CHANGED
@@ -16,6 +16,7 @@ datasets
|
|
16 |
pymupdf
|
17 |
python-Levenshtein
|
18 |
nltk
|
|
|
19 |
torch==1.13.1+cu117
|
20 |
torchvision==0.14.1+cu117
|
21 |
torchaudio==0.13.1
|
|
|
16 |
pymupdf
|
17 |
python-Levenshtein
|
18 |
nltk
|
19 |
+
- i https://download.pytorch.org/whl/cu117
|
20 |
torch==1.13.1+cu117
|
21 |
torchvision==0.14.1+cu117
|
22 |
torchaudio==0.13.1
|