Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -161,7 +161,7 @@ def analyze_image_with_text(image_path: str, user_text: str) -> str:
|
|
| 161 |
# ==========================
|
| 162 |
tools = [generate_and_upload_image, analyze_image_with_text]
|
| 163 |
# 1. 建立 LLM 模型
|
| 164 |
-
llm = ChatGoogleGenerativeAI(model="gemini-3-flash-lite-preview", temperature=0.4)
|
| 165 |
# 2. 定義 System Prompt (取代原本的 prompt_template)
|
| 166 |
system_prompt = "你是一個強大的影像生成及影像分析代理人。如果生成了圖片,請直接給出 URL。"
|
| 167 |
# 3. 直接建立包含 Executor 功能的 Agent
|
|
|
|
| 161 |
# ==========================
|
| 162 |
tools = [generate_and_upload_image, analyze_image_with_text]
|
| 163 |
# 1. 建立 LLM 模型
|
| 164 |
+
llm = ChatGoogleGenerativeAI(model="gemini-3.1-flash-lite-preview", temperature=0.4)
|
| 165 |
# 2. 定義 System Prompt (取代原本的 prompt_template)
|
| 166 |
system_prompt = "你是一個強大的影像生成及影像分析代理人。如果生成了圖片,請直接給出 URL。"
|
| 167 |
# 3. 直接建立包含 Executor 功能的 Agent
|