kz209 commited on
Commit
4e6ddea
1 Parent(s): 100f84a
Files changed (1) hide show
  1. utils/model.py +1 -0
utils/model.py CHANGED
@@ -24,6 +24,7 @@ class Model():
24
  temperature=temp,
25
  num_return_sequences=1,
26
  eos_token_id=self.tokenizer.eos_token_id,
 
27
  )
28
 
29
  return sequences[-1]['generated_text'] #'\n'.join([seq['generated_text'] for seq in sequences])
 
24
  temperature=temp,
25
  num_return_sequences=1,
26
  eos_token_id=self.tokenizer.eos_token_id,
27
+ return_full_text=False
28
  )
29
 
30
  return sequences[-1]['generated_text'] #'\n'.join([seq['generated_text'] for seq in sequences])