hunyuan-t commited on
Commit
ee1a393
·
verified ·
1 Parent(s): 5ed54a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,13 +60,13 @@ def respond(
60
  if is_reasoning_start:
61
  response += '> **Start thinking**\n\n'
62
  is_reasoning_start = False
63
- token = event.choices[0].delta.reasoning_content# Wrap reasoning_content in a span with a lighter color
64
  response += token
65
  else:
66
  if is_reasoning_end:
67
  response += '> **End thinking**\n\n'
68
  is_reasoning_end = False
69
- token = event.choices[0].delta.answer_content# Wrap content in a span with a normal color
70
  response += token
71
  yield response
72
  except Exception as e:
 
60
  if is_reasoning_start:
61
  response += '> **Start thinking**\n\n'
62
  is_reasoning_start = False
63
+ token = event.choices[0].delta.reasoning_content
64
  response += token
65
  else:
66
  if is_reasoning_end:
67
  response += '> **End thinking**\n\n'
68
  is_reasoning_end = False
69
+ token = event.choices[0].delta.content
70
  response += token
71
  yield response
72
  except Exception as e: