Commit
·
3df6e56
1
Parent(s):
62a1e81
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ if __name__ == "__main__":
|
|
| 20 |
|
| 21 |
st.markdown("---")
|
| 22 |
summarize_type = st.sidebar.selectbox(
|
| 23 |
-
"Summarization
|
| 24 |
)
|
| 25 |
st.markdown(
|
| 26 |
"""This app supports two type of summarization:
|
|
@@ -58,7 +58,7 @@ if __name__ == "__main__":
|
|
| 58 |
clean_txt = clean_text(inp_text)
|
| 59 |
|
| 60 |
# view summarized text (expander)
|
| 61 |
-
with st.expander("View
|
| 62 |
if is_url:
|
| 63 |
st.write(clean_txt[0])
|
| 64 |
else:
|
|
|
|
| 20 |
|
| 21 |
st.markdown("---")
|
| 22 |
summarize_type = st.sidebar.selectbox(
|
| 23 |
+
"Summarization Type", options=["Extractive", "Abstractive"]
|
| 24 |
)
|
| 25 |
st.markdown(
|
| 26 |
"""This app supports two type of summarization:
|
|
|
|
| 58 |
clean_txt = clean_text(inp_text)
|
| 59 |
|
| 60 |
# view summarized text (expander)
|
| 61 |
+
with st.expander("View Input Text"):
|
| 62 |
if is_url:
|
| 63 |
st.write(clean_txt[0])
|
| 64 |
else:
|