jerryjyl commited on
Commit
4d5b6b9
·
verified ·
1 Parent(s): efd06ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,5 +5,5 @@ pipe = pipeline("summarization", model="facebook/bart-large-cnn")
5
  text = st.text_area("Enter a text paragraph to generate a summary!")
6
 
7
  if text:
8
- out = pipe(text)
9
  st.json(out)
 
5
  text = st.text_area("Enter a text paragraph to generate a summary!")
6
 
7
  if text:
8
+ out = pipe(text, max_length=200, min_length=20, do_sample=False)
9
  st.json(out)