Spaces:
Running
Running
Update app.py
Browse files
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}?
|
| 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
|