Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,5 +3,5 @@ from transformers import pipeline
|
|
3 |
summarizer1 = pipeline("summarization", model = 't5-base')
|
4 |
user_input = st.text_area("Enter text to summarize here")
|
5 |
if st.button("Summarize"):
|
6 |
-
summary_text = summarizer1(user_input, min_length=
|
7 |
st.write(summary_text)
|
|
|
3 |
summarizer1 = pipeline("summarization", model = 't5-base')
|
4 |
user_input = st.text_area("Enter text to summarize here")
|
5 |
if st.button("Summarize"):
|
6 |
+
summary_text = summarizer1(user_input, min_length=20, max_length=25)
|
7 |
st.write(summary_text)
|