AjithKSenthil commited on
Commit
66cbf2b
·
verified ·
1 Parent(s): 0bcd8c0

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -165,7 +165,7 @@ def chatbot(input, state):
165
  model="gpt-3.5-turbo",
166
  messages=messages
167
  )
168
- reply = response.choices[0].message['content']
169
  messages.append({"role": "assistant", "content": reply})
170
 
171
  conversation = ""
 
165
  model="gpt-3.5-turbo",
166
  messages=messages
167
  )
168
+ reply = response.choices[0].message.content
169
  messages.append({"role": "assistant", "content": reply})
170
 
171
  conversation = ""