Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,10 @@ def respond(
|
|
25 |
for val in history:
|
26 |
if val[0]:
|
27 |
messages.append({"role": "user", "content": val[0]})
|
|
|
28 |
if val[1]:
|
29 |
messages.append({"role": "assistant", "content": val[1]})
|
|
|
30 |
|
31 |
messages.append({"role": "user", "content": message})
|
32 |
|
@@ -43,6 +45,7 @@ def respond(
|
|
43 |
|
44 |
response += token
|
45 |
yield response
|
|
|
46 |
|
47 |
|
48 |
"""
|
|
|
25 |
for val in history:
|
26 |
if val[0]:
|
27 |
messages.append({"role": "user", "content": val[0]})
|
28 |
+
print(val[0])
|
29 |
if val[1]:
|
30 |
messages.append({"role": "assistant", "content": val[1]})
|
31 |
+
print(val[1])
|
32 |
|
33 |
messages.append({"role": "user", "content": message})
|
34 |
|
|
|
45 |
|
46 |
response += token
|
47 |
yield response
|
48 |
+
print(response)
|
49 |
|
50 |
|
51 |
"""
|