Pepguy commited on
Commit
ae2ec35
·
verified ·
1 Parent(s): 0360037

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -143,7 +143,7 @@ def generate_from_gemini(prompt, image_bytes=None, history=None):
143
  def get_user_history(uid):
144
  if uid not in user_memory:
145
  try:
146
- resp = requests.get(f"{LAMBDA_URL}?user_id={uid}", timeout=5)
147
  resp.raise_for_status()
148
  loaded_history = resp.json().get("history", [])
149
  # Only keep the most recent MAX_HISTORY_TURNS when loading
 
143
  def get_user_history(uid):
144
  if uid not in user_memory:
145
  try:
146
+ resp = requests.get(f"{LAMBDA_URL}?userid={uid}", timeout=5)
147
  resp.raise_for_status()
148
  loaded_history = resp.json().get("history", [])
149
  # Only keep the most recent MAX_HISTORY_TURNS when loading