Spaces:
Runtime error
Runtime error
Update Uploading_images_file.py
Browse files- 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
|