Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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"
|
| 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()
|