Spaces:
Runtime error
Runtime error
Rijgersberg
commited on
Commit
•
6d0888e
1
Parent(s):
b590e2a
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def generate(
|
|
69 |
top_p):
|
70 |
|
71 |
conversation = [{"role": "system", "content": system_message}]
|
72 |
-
for user, assistant in
|
73 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
74 |
conversation.append({"role": "user", "content": message})
|
75 |
|
|
|
69 |
top_p):
|
70 |
|
71 |
conversation = [{"role": "system", "content": system_message}]
|
72 |
+
for user, assistant in history:
|
73 |
conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
|
74 |
conversation.append({"role": "user", "content": message})
|
75 |
|