kaitwithkwk commited on
Commit
af253ef
·
verified ·
1 Parent(s): bdf52b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def respond(message, history):
19
  max_tokens=100,
20
  stream=True
21
  ):
22
- token = message.choices[0].delta.content
23
 
24
  response += token
25
  yield response
 
19
  max_tokens=100,
20
  stream=True
21
  ):
22
+ token = message['choices'][0]['delta']['content']
23
 
24
  response += token
25
  yield response