Spaces:
Sleeping
Sleeping
Elijahbodden
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -63,11 +63,11 @@ def respond(
|
|
63 |
messages = []
|
64 |
for val in history:
|
65 |
if val[0]:
|
66 |
-
messages.append({"
|
67 |
if val[1]:
|
68 |
-
messages.append({"
|
69 |
|
70 |
-
messages.append({"
|
71 |
|
72 |
response = ""
|
73 |
|
|
|
63 |
messages = []
|
64 |
for val in history:
|
65 |
if val[0]:
|
66 |
+
messages.append({"role": "user", "content": val[0]})
|
67 |
if val[1]:
|
68 |
+
messages.append({"role": "assistant", "content": val[1]})
|
69 |
|
70 |
+
messages.append({"role": "user", "content": message})
|
71 |
|
72 |
response = ""
|
73 |
|