Update modeling_deepseekocr.py
Browse files- modeling_deepseekocr.py +0 -2
modeling_deepseekocr.py
CHANGED
|
@@ -27,7 +27,6 @@ import time
|
|
| 27 |
def load_image(image_path):
|
| 28 |
|
| 29 |
try:
|
| 30 |
-
print(f"image_path:",type(image_path))
|
| 31 |
image = Image.open(image_path)
|
| 32 |
|
| 33 |
corrected_image = ImageOps.exif_transpose(image)
|
|
@@ -37,7 +36,6 @@ def load_image(image_path):
|
|
| 37 |
except Exception as e:
|
| 38 |
print(f"error: {e}")
|
| 39 |
try:
|
| 40 |
-
print(f"image_path:",type(image_path))
|
| 41 |
return Image.open(image_path)
|
| 42 |
except:
|
| 43 |
return None
|
|
|
|
| 27 |
def load_image(image_path):
|
| 28 |
|
| 29 |
try:
|
|
|
|
| 30 |
image = Image.open(image_path)
|
| 31 |
|
| 32 |
corrected_image = ImageOps.exif_transpose(image)
|
|
|
|
| 36 |
except Exception as e:
|
| 37 |
print(f"error: {e}")
|
| 38 |
try:
|
|
|
|
| 39 |
return Image.open(image_path)
|
| 40 |
except:
|
| 41 |
return None
|