Update main.py
Browse files
main.py
CHANGED
|
@@ -96,7 +96,6 @@ def analyze_with_gemini(image_path, user_text):
|
|
| 96 |
raise FileNotFoundError(f"圖片路徑無效:{image_path}")
|
| 97 |
|
| 98 |
organ = PIL.Image.open(image_path)
|
| 99 |
-
chat = model.start_chat(history=history)
|
| 100 |
response = chat.send_message([user_text, organ])
|
| 101 |
|
| 102 |
# 提取回應內容
|
|
|
|
| 96 |
raise FileNotFoundError(f"圖片路徑無效:{image_path}")
|
| 97 |
|
| 98 |
organ = PIL.Image.open(image_path)
|
|
|
|
| 99 |
response = chat.send_message([user_text, organ])
|
| 100 |
|
| 101 |
# 提取回應內容
|