sabirbagwan commited on
Commit
22d1738
·
1 Parent(s): 66d7b2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -2,7 +2,25 @@ import streamlit as st
2
  import base64
3
  from model import Model
4
 
5
- st.title("Text Summarizer")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  with st.form(key="clf_form"):
8
  text_input = st.text_area("Type Here:")
@@ -12,7 +30,7 @@ with st.form(key="clf_form"):
12
 
13
  if submit_btn:
14
  if text_input == "":
15
- st.error("Enter something in order to summarize it.", icon="⛔️")
16
  elif count_of_words <= 100:
17
  st.warning("Please enter more than 100 words in order to summarize it.", icon="⚠️")
18
  else:
 
2
  import base64
3
  from model import Model
4
 
5
+ st.sidebar.title('Whatsapp text analysis!!')
6
+ # st.sidebar.write('Created by Sabir Bagwan')
7
+ st.sidebar.write('Created by <strong><em>SABIR BAGWAN</em></strong>', unsafe_allow_html=True)
8
+
9
+
10
+ # Display social media links in sidebar
11
+ st.sidebar.markdown("[Twitter](https://twitter.com/sabirbagwan_), \
12
+ [LinkedIn](https://www.linkedin.com/in/sabirbagwan/), \
13
+ [GitHub](https://github.com/sabirbagwan), \
14
+ [Kaggle](https://kaggle.com/sabirbagwan)")
15
+
16
+ st.sidebar.header("Disclaimer:")
17
+ st.sidebar.write("This Streamlit application has been created solely for academic and learning purposes. \
18
+ The results and insights provided by the application should not be taken as accurate or definitive. \
19
+ The creator of this application is not responsible for any actions taken based on the information provided by the application.")
20
+
21
+
22
+
23
+ st.markdown('<h2 style="text-align: center;">Text Summarizer</h2>', unsafe_allow_html=True)
24
 
25
  with st.form(key="clf_form"):
26
  text_input = st.text_area("Type Here:")
 
30
 
31
  if submit_btn:
32
  if text_input == "":
33
+ st.error("Enter something in order to summarize it.")
34
  elif count_of_words <= 100:
35
  st.warning("Please enter more than 100 words in order to summarize it.", icon="⚠️")
36
  else: