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

Updated click

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,10 +45,10 @@ def get_named_entities(ocr_text: str):
45
 
46
 
47
  def run(image, lang=None):
48
- result = pytesseract.image_to_string(image, lang=None if lang == [] else lang)
49
 
50
  ner = get_named_entities(result)
51
- return [result, ner]
52
 
53
 
54
  with gr.Blocks() as demo:
 
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
52
 
53
 
54
  with gr.Blocks() as demo: