Update main.py
Browse files
main.py
CHANGED
@@ -144,6 +144,9 @@ def handle_image_message(event):
|
|
144 |
# η΅εεηθζεεζ
|
145 |
out = analyze_with_gemini(image_path, user_text)
|
146 |
GeneAI = out
|
|
|
|
|
|
|
147 |
|
148 |
else:
|
149 |
global working_status
|
|
|
144 |
# η΅εεηθζεεζ
|
145 |
out = analyze_with_gemini(image_path, user_text)
|
146 |
GeneAI = out
|
147 |
+
history.append({"role": "user", "parts": [user_text]})
|
148 |
+
if GeneAI:
|
149 |
+
history.append({"role": "model", "parts": [GeneAI]})
|
150 |
|
151 |
else:
|
152 |
global working_status
|