abdulmatinomotoso commited on
Commit
3e83100
1 Parent(s): 4c4e6d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def headline_generator_2(file):
50
  )
51
 
52
  translated = model_2.generate(**batch)
53
- summary_2 = tokenizer_2.batch_decode(translated, skip_special_tokens=True, max_length=100)
54
  return summary_2[0]
55
 
56
  #creating an interface for the headline generator using gradio
 
50
  )
51
 
52
  translated = model_2.generate(**batch)
53
+ summary_2 = tokenizer_2.batch_decode(translated, skip_special_tokens=True, max_length=50)
54
  return summary_2[0]
55
 
56
  #creating an interface for the headline generator using gradio