Elijahbodden commited on
Commit
02c3f6c
·
verified ·
1 Parent(s): 00114ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -63,11 +63,11 @@ def respond(
63
  messages = []
64
  for val in history:
65
  if val[0]:
66
- messages.append({"from": "human", "content": val[0]})
67
  if val[1]:
68
- messages.append({"from": "gpt", "content": val[1]})
69
 
70
- messages.append({"from": "human", "content": message})
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