Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -457,6 +457,10 @@ def save_memory(purpose, history):
|
|
457 |
lines = resp.strip().strip("\n").split("\n")
|
458 |
r = requests.get(f'{save_data}mem-test2/main.json')
|
459 |
print(f'status code main:: {r.status_code}')
|
|
|
|
|
|
|
|
|
460 |
if r.status_code==200:
|
461 |
|
462 |
lod = json.loads(r.text)
|
|
|
457 |
lines = resp.strip().strip("\n").split("\n")
|
458 |
r = requests.get(f'{save_data}mem-test2/main.json')
|
459 |
print(f'status code main:: {r.status_code}')
|
460 |
+
try:
|
461 |
+
print(f"KEYWORDS:: {json_object['keywords']}")
|
462 |
+
except Exception as e:
|
463 |
+
print(f"KEYWORDS:: {e}")
|
464 |
if r.status_code==200:
|
465 |
|
466 |
lod = json.loads(r.text)
|