tomofi commited on
Commit
5605392
1 Parent(s): 9f8f289

Update app.py

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