Mridul2003 commited on
Commit
44f72ba
·
verified ·
1 Parent(s): 2fb729d

Update services/image_ocr.py

Browse files
Files changed (1) hide show
  1. services/image_ocr.py +1 -1
services/image_ocr.py CHANGED
@@ -18,4 +18,4 @@ class ImageOCRService:
18
  {"type": "text", "text": "extract text from image"}
19
  ]
20
  }])
21
- return result[0]['generated_text'] if result else ""
 
18
  {"type": "text", "text": "extract text from image"}
19
  ]
20
  }])
21
+ return result[0]['generated_text'][1]['content'] if result else ""