sotirios-slv commited on
Commit
c444b8a
1 Parent(s): fc29243

Updated lang check

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,7 +45,8 @@ def get_named_entities(ocr_text: str):
45
 
46
 
47
  def run(image, lang=None):
48
- result = pytesseract.image_to_string(image, lang="Eng" if lang == [] else lang)
 
49
 
50
  ner = get_named_entities(result)
51
  return result, ner
 
45
 
46
 
47
  def run(image, lang=None):
48
+ print("Lang ", lang)
49
+ result = pytesseract.image_to_string(image, lang=None if lang == [] else lang)
50
 
51
  ner = get_named_entities(result)
52
  return result, ner