Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ if option == "Summarization":
|
|
16 |
text = st.text_area("Enter text to summarize")
|
17 |
if st.button("Summarize"):
|
18 |
if text:
|
19 |
-
summary =
|
20 |
st.write("Summary:", summary)
|
21 |
else:
|
22 |
st.write("Please enter text to summarize.")
|
|
|
16 |
text = st.text_area("Enter text to summarize")
|
17 |
if st.button("Summarize"):
|
18 |
if text:
|
19 |
+
summary = pipe(text)[0]["summary_text"]
|
20 |
st.write("Summary:", summary)
|
21 |
else:
|
22 |
st.write("Please enter text to summarize.")
|