Spaces:
Running
Running
Update main.py
Browse files
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")
|