Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -33,7 +33,7 @@ async def ocr(
|
|
| 33 |
content = await image.read()
|
| 34 |
image = Image.open(BytesIO(content))
|
| 35 |
# text = pytesseract.image_to_string(image, lang="+".join(languages))
|
| 36 |
-
text = pytesseract.image_to_string(image)
|
| 37 |
# message = "file uploaded"
|
| 38 |
except Exception as e:
|
| 39 |
return {"error": str(e)}, 500
|
|
|
|
| 33 |
content = await image.read()
|
| 34 |
image = Image.open(BytesIO(content))
|
| 35 |
# text = pytesseract.image_to_string(image, lang="+".join(languages))
|
| 36 |
+
text = pytesseract.image_to_string(image, lang = 'eng')
|
| 37 |
# message = "file uploaded"
|
| 38 |
except Exception as e:
|
| 39 |
return {"error": str(e)}, 500
|