Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -42,6 +42,7 @@ async def ocr(
|
|
| 42 |
try:
|
| 43 |
content = await image.read()
|
| 44 |
image = Image.open(BytesIO(content))
|
|
|
|
| 45 |
text = pytesseract.image_to_string(image, lang = 'eng')
|
| 46 |
# text = pytesseract.image_to_string(image, lang="+".join(languages))
|
| 47 |
except Exception as e:
|
|
|
|
| 42 |
try:
|
| 43 |
content = await image.read()
|
| 44 |
image = Image.open(BytesIO(content))
|
| 45 |
+
print("[image]",image)
|
| 46 |
text = pytesseract.image_to_string(image, lang = 'eng')
|
| 47 |
# text = pytesseract.image_to_string(image, lang="+".join(languages))
|
| 48 |
except Exception as e:
|