omkar56 commited on
Commit
4ce158a
·
1 Parent(s): ab81f2e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -48,7 +48,7 @@ async def ocr(
48
  # raise HTTPException(status_code=400, detail="Invalid file format. Only .jpg, .jpeg, and .png are allowed.")
49
 
50
  content = await image.read()
51
- print("[content]", content)
52
  image = Image.open(BytesIO(content))
53
  print("[image]", image)
54
  text = pytesseract.image_to_string(image, lang = 'eng')
 
48
  # raise HTTPException(status_code=400, detail="Invalid file format. Only .jpg, .jpeg, and .png are allowed.")
49
 
50
  content = await image.read()
51
+ print("[filename]", image.filename)
52
  image = Image.open(BytesIO(content))
53
  print("[image]", image)
54
  text = pytesseract.image_to_string(image, lang = 'eng')