hunyuan-t commited on
Commit
0d09d8e
·
verified ·
1 Parent(s): 0b09f94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -56,11 +56,7 @@ def respond(
56
 
57
 
58
  for event in completion:
59
- if message == "深圳哪里好玩?":
60
- print(111111)
61
- print(event.choices[0].delta.reasoning_content)
62
- print(event.choices[0].delta.content)
63
- if hasattr(event.choices[0].delta, 'reasoning_content'):
64
  if is_reasoning_start:
65
  response += '> **Start thinking**\n\n'
66
  is_reasoning_start = False
 
56
 
57
 
58
  for event in completion:
59
+ if hasattr(event.choices[0].delta, 'reasoning_content') and event.choices[0].delta.reasoning_content:
 
 
 
 
60
  if is_reasoning_start:
61
  response += '> **Start thinking**\n\n'
62
  is_reasoning_start = False