abhi1nandy2 commited on
Commit
238cad8
·
verified ·
1 Parent(s): 2b2e47a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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