hunyuan-t commited on
Commit
2bd85e3
·
verified ·
1 Parent(s): dec47c5

Update app.py

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