Spaces:
Sleeping
Sleeping
Update fn.py
Browse files
fn.py
CHANGED
@@ -207,7 +207,7 @@ def chat(message, history = [], instruction = None, args = {}):
|
|
207 |
yield model_output
|
208 |
|
209 |
outputs = model.generate(**generate_kwargs)
|
210 |
-
content = tokenizer.decode(outputs, skip_special_tokens=True)
|
211 |
return content
|
212 |
|
213 |
def apply_template(messages):
|
|
|
207 |
yield model_output
|
208 |
|
209 |
outputs = model.generate(**generate_kwargs)
|
210 |
+
content = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
211 |
return content
|
212 |
|
213 |
def apply_template(messages):
|