hunyuan-t commited on
Commit
100edcb
·
verified ·
1 Parent(s): 96c9cae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def respond(
50
  print(event)
51
  print(type(event))
52
  print(222222222222)
53
- token = choices[0].delta['content']
54
  if message.find('写一篇关于青春的五言绝句') != -1:
55
  print(11111111111)
56
  print(token)
 
50
  print(event)
51
  print(type(event))
52
  print(222222222222)
53
+ token = event['choices'][0].delta['content']
54
  if message.find('写一篇关于青春的五言绝句') != -1:
55
  print(11111111111)
56
  print(token)