Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,8 +30,8 @@ def models(text, model="Mixtral 8x7B"):
|
|
| 30 |
output = ""
|
| 31 |
for response in stream:
|
| 32 |
if "Phi" in model:
|
| 33 |
-
|
| 34 |
-
|
| 35 |
else:
|
| 36 |
if not response.token.text == "</s>":
|
| 37 |
output += response.token.text
|
|
|
|
| 30 |
output = ""
|
| 31 |
for response in stream:
|
| 32 |
if "Phi" in model:
|
| 33 |
+
output = output[:-13]
|
| 34 |
+
yield output
|
| 35 |
else:
|
| 36 |
if not response.token.text == "</s>":
|
| 37 |
output += response.token.text
|