alanchen1115 commited on
Commit
12a8fbe
·
verified ·
1 Parent(s): 7272a39

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -236,7 +236,7 @@ def handle_message(event):
236
  if previous_message["type"] == "image":
237
  image_path = previous_message["content"]
238
  agent_input = {
239
- "input": f"這是一張圖片在 {image_path},請根據圖片回答以下問題:{user_text}"
240
  }
241
  # 清除上一則圖片訊息,避免重複觸發
242
  user_message_history[user_id].pop()
 
236
  if previous_message["type"] == "image":
237
  image_path = previous_message["content"]
238
  agent_input = {
239
+ "input": f"圖片路徑:{image_path},問題:{user_text}"
240
  }
241
  # 清除上一則圖片訊息,避免重複觸發
242
  user_message_history[user_id].pop()