nhathuy07 commited on
Commit
26ccf72
·
verified ·
1 Parent(s): 2188b8e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -184,6 +184,8 @@ async def __ocr(im, file_id):
184
  out = pytesseract.image_to_string(f"{file_id}.png", lang="vie", config=r'--psm 4')
185
  os.remove(f"{file_id}.png")
186
 
 
 
187
  async def __convert2md(inp):
188
  # Use gfm-raw_html to strip styling data from source file
189
  return await __convert_text(inp.encode(), "gfm-raw_html", "html")
 
184
  out = pytesseract.image_to_string(f"{file_id}.png", lang="vie", config=r'--psm 4')
185
  os.remove(f"{file_id}.png")
186
 
187
+ return out
188
+
189
  async def __convert2md(inp):
190
  # Use gfm-raw_html to strip styling data from source file
191
  return await __convert_text(inp.encode(), "gfm-raw_html", "html")