Spaces:
Sleeping
Sleeping
no history!
Browse files
app.py
CHANGED
@@ -101,11 +101,13 @@ def respond(
|
|
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]:
|
108 |
messages.append({"role": "assistant", "content": val[1]})
|
|
|
109 |
|
110 |
messages.append({"role": "user", "content": message})
|
111 |
|
|
|
101 |
|
102 |
messages = [{"role": "system", "content": system_message}]
|
103 |
|
104 |
+
"""
|
105 |
for val in history[-1:]:
|
106 |
if val[0]:
|
107 |
messages.append({"role": "user", "content": val[0]})
|
108 |
if val[1]:
|
109 |
messages.append({"role": "assistant", "content": val[1]})
|
110 |
+
"""
|
111 |
|
112 |
messages.append({"role": "user", "content": message})
|
113 |
|