Spaces:
Runtime error
Runtime error
Commit
•
cd7462e
1
Parent(s):
60039c9
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def respond(
|
|
104 |
output_scores=True,
|
105 |
max_new_tokens=max_new_tokens,
|
106 |
)
|
107 |
-
response = tokenizer.decode(generation_output.sequences[0][:-
|
108 |
return response
|
109 |
|
110 |
|
|
|
104 |
output_scores=True,
|
105 |
max_new_tokens=max_new_tokens,
|
106 |
)
|
107 |
+
response = tokenizer.decode(generation_output.sequences[0][:-2]).split("### Assistant:\n", 1)[1]
|
108 |
return response
|
109 |
|
110 |
|