alanchen1115 commited on
Commit
4edc6ed
·
verified ·
1 Parent(s): ab5a246

Update Uploading_images_file.py

Browse files
Files changed (1) hide show
  1. Uploading_images_file.py +1 -1
Uploading_images_file.py CHANGED
@@ -41,7 +41,7 @@ def analyze_with_gemini(image_path, user_text):
41
  raise FileNotFoundError(f"圖片路徑無效:{image_path}")
42
 
43
  img_user = PIL.Image.open(image_path)
44
- response = chat.send_message([user_text, img_user)])
45
 
46
  # 提取回應內容
47
  return response.text
 
41
  raise FileNotFoundError(f"圖片路徑無效:{image_path}")
42
 
43
  img_user = PIL.Image.open(image_path)
44
+ response = chat.send_message([user_text, img_user])
45
 
46
  # 提取回應內容
47
  return response.text