Arturo Jiménez de los Galanes Reguillos commited on
Commit
7dfeb8a
1 Parent(s): 31bbafb

Set do_sample=True

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def translate(python):
35
  input_ids=inputs,
36
  streamer=streamer,
37
  max_new_tokens=512,
38
- do_sample=False,
39
  top_k=50,
40
  top_p=0.95,
41
  num_return_sequences=1,
 
35
  input_ids=inputs,
36
  streamer=streamer,
37
  max_new_tokens=512,
38
+ do_sample=True,
39
  top_k=50,
40
  top_p=0.95,
41
  num_return_sequences=1,