Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,5 +6,5 @@ summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
|
6 |
ARTICLE = st.text_area('Enter some text here...')
|
7 |
|
8 |
if ARTICLE:
|
9 |
-
out = summarizer(ARTICLE, max_length=
|
10 |
st.json(out)
|
|
|
6 |
ARTICLE = st.text_area('Enter some text here...')
|
7 |
|
8 |
if ARTICLE:
|
9 |
+
out = summarizer(ARTICLE, max_length=5000, min_length=30, do_sample=False)
|
10 |
st.json(out)
|