Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def respond(
|
|
78 |
# Keep the last 4 conversation pairs (user-assistant)
|
79 |
messages = [{"role": "system", "content": os.environ.get("CHARACTER_DESC")}]
|
80 |
|
81 |
-
for val in history
|
82 |
if val[0]:
|
83 |
messages.append({"role": "user", "content": val[0]})
|
84 |
if val[1]:
|
|
|
78 |
# Keep the last 4 conversation pairs (user-assistant)
|
79 |
messages = [{"role": "system", "content": os.environ.get("CHARACTER_DESC")}]
|
80 |
|
81 |
+
for val in history:
|
82 |
if val[0]:
|
83 |
messages.append({"role": "user", "content": val[0]})
|
84 |
if val[1]:
|