Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def stream_chat(message: str, history: list, temperature: float, max_new_tokens:
|
|
| 77 |
temperature=temperature,
|
| 78 |
)
|
| 79 |
|
| 80 |
-
gen_text = tokenizer.
|
| 81 |
|
| 82 |
return gen_text
|
| 83 |
|
|
|
|
| 77 |
temperature=temperature,
|
| 78 |
)
|
| 79 |
|
| 80 |
+
gen_text = tokenizer.batch_decode(gen_tokens[0], skip_special_tokens=True)
|
| 81 |
|
| 82 |
return gen_text
|
| 83 |
|