kenfoo commited on
Commit
a2b1925
·
verified ·
1 Parent(s): 921080d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 {"image": handle_file(image_path), "caption": None}
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