Spaces:
Build error
Build error
EliottZemour
commited on
Commit
•
c88b60d
1
Parent(s):
bd89db0
skip special tokens
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def generate_reviews(stars, useful, funny, cool):
|
|
31 |
)
|
32 |
reviews = []
|
33 |
for review in out:
|
34 |
-
reviews.append(postprocess(tokenizer.decode(review
|
35 |
|
36 |
return reviews[0], reviews[1], reviews[2]
|
37 |
|
|
|
31 |
)
|
32 |
reviews = []
|
33 |
for review in out:
|
34 |
+
reviews.append(postprocess(tokenizer.decode(review, skip_special_tokens=True)))
|
35 |
|
36 |
return reviews[0], reviews[1], reviews[2]
|
37 |
|