tomofi commited on
Commit
087189d
1 Parent(s): 5605392

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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().strip()
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."