Update app.py
Browse files
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)
|