Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,9 @@ def chat(message, history):
|
|
| 27 |
|
| 28 |
output = result[0]["generated_text"]
|
| 29 |
|
|
|
|
|
|
|
|
|
|
| 30 |
return output.split("Assistant:")[-1]
|
| 31 |
|
| 32 |
|
|
|
|
| 27 |
|
| 28 |
output = result[0]["generated_text"]
|
| 29 |
|
| 30 |
+
# Clean tokenizer artifacts
|
| 31 |
+
output = output.replace("Ċ", "\n").replace("Ġ", " ")
|
| 32 |
+
|
| 33 |
return output.split("Assistant:")[-1]
|
| 34 |
|
| 35 |
|