Spaces:
Build error
Build error
mathiasleys
commited on
Commit
•
2ad6bb3
1
Parent(s):
fc11a54
Edit text
Browse files
app.py
CHANGED
@@ -11,19 +11,19 @@ def main() -> None:
|
|
11 |
nltk.download('punkt')
|
12 |
|
13 |
st.markdown('# Terms & conditions summarization :pencil:')
|
14 |
-
st.
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
21 |
'For information about the extractive summarization :point_right: https://en.wikipedia.org/wiki/Latent_semantic_analysis<br>'
|
22 |
'For information about the abstractive summarization :point_right: https://huggingface.co/ml6team/distilbart-tos-summarizer-tosdr', unsafe_allow_html=True)
|
23 |
|
24 |
st.markdown("""
|
25 |
-
|
26 |
-
- Number of sentences to be extracted is configurable
|
27 |
- Specify an URL to extract contents OR copy terms & conditions content and hit 'Summarize'
|
28 |
""")
|
29 |
|
|
|
11 |
nltk.download('punkt')
|
12 |
|
13 |
st.markdown('# Terms & conditions summarization :pencil:')
|
14 |
+
st.markdown("""
|
15 |
+
Do you also take the time out of your day to thoroughly read every word of the Terms & Conditions before signing up for a new app? :thinking_face:
|
16 |
+
No?
|
17 |
+
Well have we got a demo for you!
|
18 |
+
Just copy-paste the lengthy Terms & Conditions text or provide a URL to the text and let our fancy NLP algorithm do the rest!
|
19 |
+
You will see both an extractive summary (the most important sentences will be highlighted) and an abstractive summary (an actual summary)
|
20 |
+
""", unsafe_allow_html=True)
|
21 |
+
st.markdown('Want to find out more?<br>'
|
22 |
'For information about the extractive summarization :point_right: https://en.wikipedia.org/wiki/Latent_semantic_analysis<br>'
|
23 |
'For information about the abstractive summarization :point_right: https://huggingface.co/ml6team/distilbart-tos-summarizer-tosdr', unsafe_allow_html=True)
|
24 |
|
25 |
st.markdown("""
|
26 |
+
How to use summarizer:
|
|
|
27 |
- Specify an URL to extract contents OR copy terms & conditions content and hit 'Summarize'
|
28 |
""")
|
29 |
|