Spaces:
Sleeping
Sleeping
Update image_to_text.py
Browse files- image_to_text.py +1 -2
image_to_text.py
CHANGED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
from PIL import Image
|
| 2 |
import pytesseract
|
| 3 |
import io
|
| 4 |
-
|
| 5 |
-
|
| 6 |
def image_to_text(images):
|
| 7 |
img_bytes = io.BytesIO()
|
| 8 |
images.save(img_bytes, format='PNG')
|
|
|
|
| 1 |
from PIL import Image
|
| 2 |
import pytesseract
|
| 3 |
import io
|
| 4 |
+
pytesseract.pytesseract.tesseract_cmd = r'/usr/bin/tesseract'
|
|
|
|
| 5 |
def image_to_text(images):
|
| 6 |
img_bytes = io.BytesIO()
|
| 7 |
images.save(img_bytes, format='PNG')
|