Update main.py
Browse files
main.py
CHANGED
@@ -103,7 +103,6 @@ async def get_data(input_file: UploadFile = File(...)):
|
|
103 |
elif file_type in ["image/jpeg", "image/png", "image/jpg"]:
|
104 |
# Read Image file using PIL and pytesseract
|
105 |
image = Image.open(io.BytesIO(file_content))
|
106 |
-
return encode_image(image)
|
107 |
text = vision(image)
|
108 |
|
109 |
else:
|
|
|
103 |
elif file_type in ["image/jpeg", "image/png", "image/jpg"]:
|
104 |
# Read Image file using PIL and pytesseract
|
105 |
image = Image.open(io.BytesIO(file_content))
|
|
|
106 |
text = vision(image)
|
107 |
|
108 |
else:
|