Spaces:
Sleeping
Sleeping
Commit
·
149d9ea
1
Parent(s):
fe13010
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_named_entities(ocr_text: str):
|
|
| 37 |
def run(image, lang="eng"):
|
| 38 |
print("Image ", image)
|
| 39 |
try:
|
| 40 |
-
print("Image info ", image.info)
|
| 41 |
except Exception as e:
|
| 42 |
print(f"Could not print image filename: {e}")
|
| 43 |
result = pytesseract.image_to_string(image, lang=None if lang == [] else lang)
|
|
|
|
| 37 |
def run(image, lang="eng"):
|
| 38 |
print("Image ", image)
|
| 39 |
try:
|
| 40 |
+
print("Image info ", image.info.keys())
|
| 41 |
except Exception as e:
|
| 42 |
print(f"Could not print image filename: {e}")
|
| 43 |
result = pytesseract.image_to_string(image, lang=None if lang == [] else lang)
|