Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,7 @@ def chat_fn(message, history):
|
|
| 19 |
temperature=0.7
|
| 20 |
)
|
| 21 |
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
|
|
|
| 22 |
return response
|
| 23 |
|
| 24 |
demo = gr.ChatInterface(
|
|
|
|
| 19 |
temperature=0.7
|
| 20 |
)
|
| 21 |
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 22 |
+
response = response.replace("<|assistant|>", "").replace("<|user|>", "").strip()
|
| 23 |
return response
|
| 24 |
|
| 25 |
demo = gr.ChatInterface(
|