mohamedemam commited on
Commit
8d554fb
·
1 Parent(s): ed51889

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def generate_qa(context, recommended_word, temperature, top_p,num_seq, num_sampl
70
  do_sample=True,
71
  max_length=100,
72
  num_beams=6,
73
- length_penalty=1.2,
74
  )
75
  #
76
  generated_text = tokenizer.batch_decode(output, skip_special_tokens=True)
 
70
  do_sample=True,
71
  max_length=100,
72
  num_beams=6,
73
+ length_penalty=1.5,
74
  )
75
  #
76
  generated_text = tokenizer.batch_decode(output, skip_special_tokens=True)