Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def encode_image_to_gallery_dict(image_path):
|
|
| 33 |
if not image_path or not isinstance(image_path, str):
|
| 34 |
return None
|
| 35 |
try:
|
| 36 |
-
return
|
| 37 |
except Exception as e:
|
| 38 |
print(f"无法读取图片: {image_path}: {e}")
|
| 39 |
return None
|
|
|
|
| 33 |
if not image_path or not isinstance(image_path, str):
|
| 34 |
return None
|
| 35 |
try:
|
| 36 |
+
return handle_file(image_path)
|
| 37 |
except Exception as e:
|
| 38 |
print(f"无法读取图片: {image_path}: {e}")
|
| 39 |
return None
|