Spaces:
Sleeping
Sleeping
rohantheru
commited on
Commit
•
152dc71
1
Parent(s):
80d20c5
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,6 @@ def summarize_text(text):
|
|
29 |
def perform_ocr(image):
|
30 |
# Enhance image
|
31 |
|
32 |
-
pytesseract.pytesseract.tesseract_cmd = '/usr/bin/tesseract'
|
33 |
-
|
34 |
# Perform OCR
|
35 |
text = pytesseract.image_to_string(image, lang='eng', config='--psm 3')
|
36 |
return text
|
|
|
29 |
def perform_ocr(image):
|
30 |
# Enhance image
|
31 |
|
|
|
|
|
32 |
# Perform OCR
|
33 |
text = pytesseract.image_to_string(image, lang='eng', config='--psm 3')
|
34 |
return text
|