Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ choices = os.popen('tesseract --list-langs').read().split('\n')[1:-1]
|
|
9 |
|
10 |
def inference(filepath, languages):
|
11 |
print('languages', languages)
|
12 |
-
languages_str = '-l ' + '+'.join(languages) if languages else ''
|
13 |
print('languages_str', languages_str)
|
14 |
return os.popen(f'tesseract {filepath} -{languages_str}').read().strip()
|
15 |
|
|
|
9 |
|
10 |
def inference(filepath, languages):
|
11 |
print('languages', languages)
|
12 |
+
languages_str = ' -l ' + '+'.join(languages) if languages else ''
|
13 |
print('languages_str', languages_str)
|
14 |
return os.popen(f'tesseract {filepath} -{languages_str}').read().strip()
|
15 |
|