Spaces:
Sleeping
Sleeping
Aumkeshchy2003
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ from PIL import Image
|
|
3 |
import pytesseract
|
4 |
import re
|
5 |
|
|
|
|
|
6 |
def perform_ocr(image):
|
7 |
extracted_text = pytesseract.image_to_string(image, lang='hin+eng')
|
8 |
return extracted_text
|
|
|
3 |
import pytesseract
|
4 |
import re
|
5 |
|
6 |
+
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
|
7 |
+
|
8 |
def perform_ocr(image):
|
9 |
extracted_text = pytesseract.image_to_string(image, lang='hin+eng')
|
10 |
return extracted_text
|