Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ 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()
|
15 |
|
16 |
title = "Tesseract OCR"
|
17 |
description = "Gradio demo for Tesseract. Tesseract is an open source text recognition (OCR) Engine."
|
|
|
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()
|
15 |
|
16 |
title = "Tesseract OCR"
|
17 |
description = "Gradio demo for Tesseract. Tesseract is an open source text recognition (OCR) Engine."
|