Spaces:
Runtime error
Runtime error
abhi1nandy2
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -47,10 +47,10 @@ def respond(
|
|
47 |
for val in history:
|
48 |
# if val[0]:
|
49 |
if len(val)>=1:
|
50 |
-
messages.append({"role": "user", "content": val[0]+"<|endoftext|>"})
|
51 |
# if val[1]:
|
52 |
if len(val)>=2:
|
53 |
-
messages.append({"role": "assistant", "content": val[1]+"<|endoftext|>"})
|
54 |
|
55 |
messages.append({"role": "user", "content": message})
|
56 |
|
|
|
47 |
for val in history:
|
48 |
# if val[0]:
|
49 |
if len(val)>=1:
|
50 |
+
messages.append({"role": "user", "content": "Question: "+val[0]+"<|endoftext|>"})
|
51 |
# if val[1]:
|
52 |
if len(val)>=2:
|
53 |
+
messages.append({"role": "assistant", "content": "Answer: "+val[1]+"<|endoftext|>"})
|
54 |
|
55 |
messages.append({"role": "user", "content": message})
|
56 |
|