Evaaaaa06 commited on
Commit
dc2b1d3
Β·
verified Β·
1 Parent(s): 24cffc2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
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