mkurman commited on
Commit
bce3ed1
·
1 Parent(s): 7f71d93
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -47,8 +47,11 @@ def respond(
47
  if token in ['<Thought>', '<|python_tag|>']:
48
  text = '## Thinking:\n\n' + text
49
 
50
- if token == '<Output>' and counter > 0:
51
- text = '## Output:\n\n' + text
 
 
 
52
 
53
  if token == '</Output>':
54
  yield None
 
47
  if token in ['<Thought>', '<|python_tag|>']:
48
  text = '## Thinking:\n\n' + text
49
 
50
+ if token == '<Output>':
51
+ if counter > 0:
52
+ text = '## Output:\n\n' + text
53
+ else:
54
+ text = '## Thinking:\n\n' + text
55
 
56
  if token == '</Output>':
57
  yield None