Pierce Maloney commited on
Commit
cd860a6
1 Parent(s): d1e4ec5

temperature 0.7

Browse files
Files changed (1) hide show
  1. handler.py +8 -1
handler.py CHANGED
@@ -23,7 +23,14 @@ class EndpointHandler():
23
  inputs = data.pop("inputs", data)
24
 
25
  # Bad word: id 3070 corresponds to "(*", and we do not want to output a comment
26
- prediction = self.pipeline(inputs, stopping_criteria=self.stopping_criteria, max_new_tokens=50, return_full_text=False, bad_words_ids=[[3070]])
 
 
 
 
 
 
 
27
  return prediction
28
 
29
 
 
23
  inputs = data.pop("inputs", data)
24
 
25
  # Bad word: id 3070 corresponds to "(*", and we do not want to output a comment
26
+ prediction = self.pipeline(
27
+ inputs,
28
+ stopping_criteria=self.stopping_criteria,
29
+ max_new_tokens=50,
30
+ return_full_text=False,
31
+ bad_words_ids=[[3070]],
32
+ temperature=0.7
33
+ )
34
  return prediction
35
 
36