Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ article = st.text_area("Enter the article:", "", height=300)
|
|
13 |
if st.button("Generate Summary"):
|
14 |
if article:
|
15 |
# Generate summary using the summarizer pipeline
|
16 |
-
summary_result = summarizer(article, max_length=130, min_length=
|
17 |
|
18 |
# Extract the summary text
|
19 |
summary_text = summary_result[0]['summary_text']
|
|
|
13 |
if st.button("Generate Summary"):
|
14 |
if article:
|
15 |
# Generate summary using the summarizer pipeline
|
16 |
+
summary_result = summarizer(article, max_length=130, min_length=30, do_sample=False)
|
17 |
|
18 |
# Extract the summary text
|
19 |
summary_text = summary_result[0]['summary_text']
|