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