Arafath10 commited on
Commit
82eb9f4
·
verified ·
1 Parent(s): ebca3e9

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -1
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: