SilvusTV commited on
Commit
a61985e
1 Parent(s): 81b8756

try to remove "</s>" and "<pad>" v2

Browse files
Files changed (1) hide show
  1. language.py +1 -1
language.py CHANGED
@@ -15,4 +15,4 @@ def longText(answere, question):
15
  outputs = model.generate(input_ids)
16
 
17
  print(tokenizer.decode(outputs[0]))
18
- return tokenizer.decode(outputs[0]).replace(["<pad>","</s>"],"")
 
15
  outputs = model.generate(input_ids)
16
 
17
  print(tokenizer.decode(outputs[0]))
18
+ return tokenizer.decode(outputs[0]).replace("<pad>","").replace("</s>","")