Spaces:
Sleeping
Sleeping
Leo Liu
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ user_input = st.text_input("Enter text to summarize:")
|
|
12 |
if st.button("Summarize Me!"):
|
13 |
if user_input:
|
14 |
with st.spinner('Summarizing...'):
|
15 |
-
result = pipe(user_input, max_length=
|
16 |
summarization = result[0]['summary_text']
|
17 |
st.write(f"Summary: {summarization}")
|
18 |
else:
|
|
|
12 |
if st.button("Summarize Me!"):
|
13 |
if user_input:
|
14 |
with st.spinner('Summarizing...'):
|
15 |
+
result = pipe(user_input, max_length = 100)
|
16 |
summarization = result[0]['summary_text']
|
17 |
st.write(f"Summary: {summarization}")
|
18 |
else:
|