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