Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,9 @@ def models(text, model="Mixtral 8x7B"):
|
|
31 |
for response in stream:
|
32 |
if not response.token.text == "</s>":
|
33 |
output += response.token.text
|
34 |
-
|
35 |
-
|
|
|
36 |
|
37 |
return output
|
38 |
|
|
|
31 |
for response in stream:
|
32 |
if not response.token.text == "</s>":
|
33 |
output += response.token.text
|
34 |
+
|
35 |
+
if not response.token.text == "<|assistant|>":
|
36 |
+
output += response.token.text
|
37 |
|
38 |
return output
|
39 |
|