swcrazyfan commited on
Commit
9f1b92c
1 Parent(s): 0fac84d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def generate_answers(text, max_length, num_beams):
24
  results= model.generate(input_ids= inputs['input_ids'], attention_mask=inputs['attention_mask'], do_sample=True,
25
  num_beams=num_beams,
26
  max_length=max_length,
27
- min_length=min_length,
28
  early_stopping=True,
29
  num_return_sequences=1)
30
  answer = tokenizer.decode(results[0], skip_special_tokens=True)
 
24
  results= model.generate(input_ids= inputs['input_ids'], attention_mask=inputs['attention_mask'], do_sample=True,
25
  num_beams=num_beams,
26
  max_length=max_length,
27
+ # min_length=min_length,
28
  early_stopping=True,
29
  num_return_sequences=1)
30
  answer = tokenizer.decode(results[0], skip_special_tokens=True)