Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -147,7 +147,7 @@ def analyze_image_with_text(image_path: str, user_text: str) -> str:
|
|
| 147 |
# img_user = PIL.Image.open(image_path)
|
| 148 |
print(user_text)
|
| 149 |
response = genai_client.models.generate_content(
|
| 150 |
-
model="gemini-2.
|
| 151 |
contents=f"θ«ζ ΉζιεΌ΅εηεηει‘γεηηθ·―εΎζ―:{image_path}οΌζηει‘ζ―:{user_text}"
|
| 152 |
)
|
| 153 |
|
|
@@ -240,7 +240,6 @@ def handle_message(event):
|
|
| 240 |
user_message_history[user_id].pop()
|
| 241 |
else:
|
| 242 |
agent_input = {"input": user_text}
|
| 243 |
-
print(agent_input)
|
| 244 |
try:
|
| 245 |
# ιθ‘代ηδΊΊ
|
| 246 |
response = agent_executor.invoke(agent_input)
|
|
|
|
| 147 |
# img_user = PIL.Image.open(image_path)
|
| 148 |
print(user_text)
|
| 149 |
response = genai_client.models.generate_content(
|
| 150 |
+
model="gemini-2.5-flash",
|
| 151 |
contents=f"θ«ζ ΉζιεΌ΅εηεηει‘γεηηθ·―εΎζ―:{image_path}οΌζηει‘ζ―:{user_text}"
|
| 152 |
)
|
| 153 |
|
|
|
|
| 240 |
user_message_history[user_id].pop()
|
| 241 |
else:
|
| 242 |
agent_input = {"input": user_text}
|
|
|
|
| 243 |
try:
|
| 244 |
# ιθ‘代ηδΊΊ
|
| 245 |
response = agent_executor.invoke(agent_input)
|