Spaces:
Running
Running
Edited app&setup
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ class Languages(enum.Enum):
|
|
126 |
class ImageReader:
|
127 |
def __init__(self, os):
|
128 |
if os == OS.Windows:
|
129 |
-
pytesseract.tesseract_cmd = '
|
130 |
|
131 |
def extract_text(self, image: Image, lang: Languages):
|
132 |
extracted_text = pytesseract.image_to_string(image, lang=lang.value)
|
|
|
126 |
class ImageReader:
|
127 |
def __init__(self, os):
|
128 |
if os == OS.Windows:
|
129 |
+
pytesseract.tesseract_cmd = '/usr/bin/tesseract'
|
130 |
|
131 |
def extract_text(self, image: Image, lang: Languages):
|
132 |
extracted_text = pytesseract.image_to_string(image, lang=lang.value)
|
setup.sh
CHANGED
File without changes
|