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

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()