Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,8 @@ def generate(
|
|
| 82 |
if any([end_token in response.token.text for end_token in [EOS_STRING, EOT_STRING]]):
|
| 83 |
if fim_mode:
|
| 84 |
output += suffix
|
| 85 |
-
|
|
|
|
| 86 |
else:
|
| 87 |
output += response.token.text
|
| 88 |
previous_token = response.token.text
|
|
|
|
| 82 |
if any([end_token in response.token.text for end_token in [EOS_STRING, EOT_STRING]]):
|
| 83 |
if fim_mode:
|
| 84 |
output += suffix
|
| 85 |
+
else:
|
| 86 |
+
return output
|
| 87 |
else:
|
| 88 |
output += response.token.text
|
| 89 |
previous_token = response.token.text
|