Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Fix divider bug
Browse files
pages/8_π_Summarise_Demo.py
CHANGED
@@ -48,7 +48,8 @@ st.title('π Summarise Demo')
|
|
48 |
st.write('We can use AI to summarise the text of a paragraph, maintaining the most pertinent information in the paragraph. Enter a clause below and click _summarise_ to see the automatic summarisation')
|
49 |
|
50 |
st.markdown('### π Enter a Clause')
|
51 |
-
text = st.text_area('Enter Clause Text', label_visibility='collapsed', value=EXAMPLE_TEXT.replace('\n', ' '),
|
|
|
52 |
button = st.button('Summarise', type='primary', use_container_width=True)
|
53 |
|
54 |
if button:
|
@@ -62,10 +63,10 @@ if button:
|
|
62 |
|
63 |
st.markdown(f":gray[{summarized_text}]")
|
64 |
|
65 |
-
|
66 |
|
67 |
add_email_signup_form()
|
68 |
|
69 |
add_footer()
|
70 |
|
71 |
-
streamlit_analytics.stop_tracking(unsafe_password=os.environ["ANALYTICS_PASSWORD"])
|
|
|
48 |
st.write('We can use AI to summarise the text of a paragraph, maintaining the most pertinent information in the paragraph. Enter a clause below and click _summarise_ to see the automatic summarisation')
|
49 |
|
50 |
st.markdown('### π Enter a Clause')
|
51 |
+
text = st.text_area('Enter Clause Text', label_visibility='collapsed', value=EXAMPLE_TEXT.replace('\n', ' '),
|
52 |
+
height=100)
|
53 |
button = st.button('Summarise', type='primary', use_container_width=True)
|
54 |
|
55 |
if button:
|
|
|
63 |
|
64 |
st.markdown(f":gray[{summarized_text}]")
|
65 |
|
66 |
+
st.write("---")
|
67 |
|
68 |
add_email_signup_form()
|
69 |
|
70 |
add_footer()
|
71 |
|
72 |
+
streamlit_analytics.stop_tracking(unsafe_password=os.environ["ANALYTICS_PASSWORD"])
|