JimmyK300 commited on
Commit
e1b2c66
·
verified ·
1 Parent(s): 11980ed

Update app_blocks.py

Browse files
Files changed (1) hide show
  1. app_blocks.py +1 -1
app_blocks.py CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
8
  def tesseract_ocr(filepath: str, languages: List[str]=None, psm: int = 7):
9
  image = Image.open(filepath)
10
  # return pytesseract.image_to_string(image=image, lang=', '.join(languages) if languages else None, config='--psm 7')
11
- return pytesseract.image_to_string(image=image, lang=', '.join(languages) if languages else None, config='--psm' + str(psm))
12
 
13
  title = "Tesseract OCR"
14
  description = "Gradio demo for Tesseract. Tesseract is an open source text recognition (OCR) Engine."
 
8
  def tesseract_ocr(filepath: str, languages: List[str]=None, psm: int = 7):
9
  image = Image.open(filepath)
10
  # return pytesseract.image_to_string(image=image, lang=', '.join(languages) if languages else None, config='--psm 7')
11
+ return pytesseract.image_to_string(image=image, lang=', '.join(languages) if languages else None, config='--psm ' + str(psm))
12
 
13
  title = "Tesseract OCR"
14
  description = "Gradio demo for Tesseract. Tesseract is an open source text recognition (OCR) Engine."