Spaces:
Running
Running
small fix
Browse files
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>'
|
51 |
-
|
|
|
|
|
|
|
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
|