Spaces:
Sleeping
Sleeping
very short memory
Browse files
app.py
CHANGED
@@ -98,10 +98,10 @@ def respond(
|
|
98 |
- Experience with debugging tools and techniques.
|
99 |
- Ability to optimize performance and diagnose memory issues.
|
100 |
"""
|
101 |
-
|
102 |
messages = [{"role": "system", "content": system_message}]
|
103 |
|
104 |
-
for val in history:
|
105 |
if val[0]:
|
106 |
messages.append({"role": "user", "content": val[0]})
|
107 |
if val[1]:
|
|
|
98 |
- Experience with debugging tools and techniques.
|
99 |
- Ability to optimize performance and diagnose memory issues.
|
100 |
"""
|
101 |
+
|
102 |
messages = [{"role": "system", "content": system_message}]
|
103 |
|
104 |
+
for val in history[-1:]:
|
105 |
if val[0]:
|
106 |
messages.append({"role": "user", "content": val[0]})
|
107 |
if val[1]:
|