Spaces:
Build error
Build error
mathiasleys
commited on
Commit
•
c6ee980
1
Parent(s):
a29b26b
Finalize text
Browse files
app.py
CHANGED
@@ -13,16 +13,12 @@ def main() -> None:
|
|
13 |
st.markdown('# Terms & conditions summarization :pencil:')
|
14 |
st.markdown('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:<br>'
|
15 |
'No?<br>'
|
16 |
-
'Well have we got a demo for you
|
17 |
-
|
18 |
'You will see both an extractive summary (the most important sentences will be highlighted) and an abstractive summary (an actual summary)', unsafe_allow_html=True)
|
19 |
st.markdown('Want to find out more?<br>'
|
20 |
-
'For
|
21 |
-
'For
|
22 |
-
st.markdown("""
|
23 |
-
How to use the summarizer:
|
24 |
-
- Specify an URL to extract contents OR copy terms & conditions content and hit 'Summarize'
|
25 |
-
""")
|
26 |
|
27 |
@st.cache(allow_output_mutation=True,
|
28 |
suppress_st_warning=True,
|
|
|
13 |
st.markdown('# Terms & conditions summarization :pencil:')
|
14 |
st.markdown('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:<br>'
|
15 |
'No?<br>'
|
16 |
+
'Well have we got a demo for you!', unsafe_allow_html=True)
|
17 |
+
st.markdown('Just copy-paste the lengthy Terms & Conditions text or provide a URL to the text and let our fancy NLP algorithm do the rest! :brain:<br>'
|
18 |
'You will see both an extractive summary (the most important sentences will be highlighted) and an abstractive summary (an actual summary)', unsafe_allow_html=True)
|
19 |
st.markdown('Want to find out more?<br>'
|
20 |
+
'For details about the extractive part :point_right: https://en.wikipedia.org/wiki/Latent_semantic_analysis<br>'
|
21 |
+
'For details about the abstractive part :point_right: https://huggingface.co/ml6team/distilbart-tos-summarizer-tosdr', unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
22 |
|
23 |
@st.cache(allow_output_mutation=True,
|
24 |
suppress_st_warning=True,
|