Evaaaaa06 commited on
Commit
80aa19e
·
verified ·
1 Parent(s): 59aa321

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -1
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
  # 提取回應內容