mulavamshi commited on
Commit
1ddee5b
ยท
verified ยท
1 Parent(s): 435b1b4

Update pages/Overview.py

Browse files
Files changed (1) hide show
  1. pages/Overview.py +79 -58
pages/Overview.py CHANGED
@@ -1,95 +1,116 @@
1
  import streamlit as st
2
- import streamlit as st
3
  from streamlit_lottie import st_lottie
4
  import requests
5
 
 
6
  st.markdown("""
7
  <style>
8
  .stApp {
9
- background-image: linear-gradient(to right, #ece9e6, #ffffff);
10
- background-size: cover;
11
  color: #333333;
12
  font-family: 'Segoe UI', sans-serif;
13
  }
14
- h1 {
15
  text-align: center;
16
  color: #1a1a1a;
17
  }
18
- .stCheckbox > div {
19
- padding: 5px;
 
 
 
 
 
 
 
 
 
 
20
  }
21
- .css-1cpxqw2 {
22
- background-color: transparent !important;
 
 
 
 
23
  }
24
  </style>
25
  """, unsafe_allow_html=True)
26
 
27
-
28
- st.markdown("<h1 style='text-align: center;'>๐Ÿ“ Text Summarization App</h1>", unsafe_allow_html=True)
29
-
30
  st.markdown("---")
31
 
32
- st.subheader("๐Ÿ” About the App")
33
- st.write("""
34
- This is a powerful, interactive **Text Summarization App** that lets you convert **long-form content into concise summaries** in just one click โ€” using state-of-the-art **Transformer models** from Hugging Face ๐Ÿค–.
 
 
 
35
  Built using:
36
- - ๐Ÿง  `transformers` library from Hugging Face for NLP
37
- - ๐Ÿงฐ Streamlit for a fast, intuitive web interface
38
- - ๐Ÿ’ซ Lottie animations for smooth experience
39
- """)
40
 
41
- st.subheader("๐Ÿ’ก What Can You Do?")
42
- st.write("""
43
- You can:
44
  - Paste any **long text** (job description, blog, article, etc.)
45
  - Choose summarization models:
46
- - `facebook/bart-large-cnn` (BART)
47
- - `t5-small` (T5)
48
- - `google/pegasus-cnn_dailymail` (PEGASUS)
49
- - Select your preferred output format:
50
- - ๐Ÿ“„ Paragraph
51
- - ๐Ÿ”น Bullet Points
52
- - ๐Ÿ› ๏ธ Custom (via sliders)
53
- Control the **summary length** with:
54
- - ๐Ÿ“‰ Short (40โ€“150 words)
55
- - ๐Ÿ“ˆ Medium (up to 300 words)
56
- - ๐Ÿ› ๏ธ Custom sliders for `min` and `max`
57
  """)
58
 
59
- st.subheader("๐Ÿงฎ Smart Features")
60
- st.write("""
61
- - Real-time **word count display** (before & after summary)
62
- - ๐Ÿ’พ Save your summaries with:
63
- - Timestamp
64
- - Model used
65
- - Input text & output summary
66
- - ๐Ÿ“š View saved **summary history**
67
- - ๐Ÿ“ฅ One-click download of summary as `.txt` file
68
- Everything runs locally โ€” no cloud sync, no data sharing ๐ŸŒ
69
- """)
70
 
71
- st.subheader("๐ŸŽฏ Why This App?")
72
- st.write("""
73
- Because no one wants to read 1000 words when 100 will do ๐Ÿ˜…
 
74
  Whether you're:
75
  - A student summarizing notes or papers
76
  - A recruiter simplifying job posts
77
  - A writer condensing blogs
78
  - Or just text-fatigued
79
- This app is for you ๐Ÿ’ช
 
80
  """)
81
 
82
  st.markdown("---")
83
 
84
- # About Me
85
- st.subheader("๐Ÿ™‹โ€โ™‚๏ธ About Me")
86
- st.write("""
87
- Hey, I'm **Mula Vamshi** โ€” a Python-powered human who builds smart, minimal apps with clean UI and real use cases.
88
- I work with Data Science, NLP, Automation & app development.
89
- This summarizer? Just a part of what I love doing!
90
- **Letโ€™s connect:**
91
- - ๐Ÿ”— [LinkedIn](https://www.linkedin.com/in/vamshi-mula-946743321)
 
 
92
  - ๐Ÿ“ง [Email Me](mailto:[email protected])
93
- > ๐Ÿ’ฌ โ€œSimplicity is my power tool. Python is my wand. Streamlit is my canvas.โ€
94
- > โ€” MULA VAMSHI
95
- """)
 
 
 
1
  import streamlit as st
 
2
  from streamlit_lottie import st_lottie
3
  import requests
4
 
5
+ # --- CUSTOM CSS FOR STYLING ---
6
  st.markdown("""
7
  <style>
8
  .stApp {
9
+ background-image: linear-gradient(to right, #f4f4f4, #ffffff);
 
10
  color: #333333;
11
  font-family: 'Segoe UI', sans-serif;
12
  }
13
+ h1, h2, h3 {
14
  text-align: center;
15
  color: #1a1a1a;
16
  }
17
+ .highlight {
18
+ background-color: #f0f8ff;
19
+ border-left: 6px solid #1890ff;
20
+ padding: 10px 15px;
21
+ margin: 15px 0;
22
+ border-radius: 5px;
23
+ }
24
+ .section-title {
25
+ font-size: 20px;
26
+ font-weight: bold;
27
+ color: #005691;
28
+ margin-top: 30px;
29
  }
30
+ .info-box {
31
+ background-color: #fffbe6;
32
+ border-left: 6px solid #faad14;
33
+ padding: 12px;
34
+ border-radius: 6px;
35
+ margin-bottom: 15px;
36
  }
37
  </style>
38
  """, unsafe_allow_html=True)
39
 
40
+ # --- HEADER TITLE ---
41
+ st.markdown("<h1>๐Ÿ“ Text Summarization App</h1>", unsafe_allow_html=True)
 
42
  st.markdown("---")
43
 
44
+ # --- ABOUT APP ---
45
+ st.markdown("<div class='section-title'>๐Ÿ” About the App</div>", unsafe_allow_html=True)
46
+ st.markdown("""
47
+ <div class='highlight'>
48
+ This is a powerful, interactive <b>Text Summarization App</b> that lets you convert <b>long-form content into concise summaries</b> with just one click โ€” powered by state-of-the-art <b>Transformer models</b> from Hugging Face ๐Ÿค–.
49
+ </div>
50
  Built using:
51
+ - ๐Ÿง  <code>transformers</code> (Hugging Face)
52
+ - ๐Ÿงฐ Streamlit for the web interface
53
+ - ๐Ÿ’ซ Lottie animations for smoother experience
54
+ """, unsafe_allow_html=True)
55
 
56
+ # --- WHAT YOU CAN DO ---
57
+ st.markdown("<div class='section-title'>๐Ÿ’ก What Can You Do?</div>", unsafe_allow_html=True)
58
+ st.markdown("""
59
  - Paste any **long text** (job description, blog, article, etc.)
60
  - Choose summarization models:
61
+ - `facebook/bart-large-cnn` (BART)
62
+ - `t5-small` (T5)
63
+ - `google/pegasus-cnn_dailymail` (PEGASUS)
64
+ - Select output format:
65
+ - ๐Ÿ“„ Paragraph
66
+ - ๐Ÿ”น Bullet Points
67
+ - ๐Ÿ› ๏ธ Custom (via sliders)
68
+ - Control summary length with:
69
+ - ๐Ÿ“‰ Short (40โ€“150 words)
70
+ - ๐Ÿ“ˆ Medium (up to 300 words)
71
+ - ๐ŸŽ›๏ธ Custom sliders for min/max
72
  """)
73
 
74
+ # --- SMART FEATURES ---
75
+ st.markdown("<div class='section-title'>๐Ÿงฎ Smart Features</div>", unsafe_allow_html=True)
76
+ st.markdown("""
77
+ <div class='info-box'>
78
+ โœ”๏ธ Real-time <b>word count display</b> (before & after summary)
79
+ โœ”๏ธ ๐Ÿ’พ Save summaries with: timestamp, model used, original + summarized text
80
+ โœ”๏ธ ๐Ÿ“š View saved summary history
81
+ โœ”๏ธ ๐Ÿ“ฅ One-click download of summaries as <code>.txt</code> files
82
+ โœ”๏ธ <b>Everything runs locally</b> โ€” no data shared ๐ŸŒ
83
+ </div>
84
+ """, unsafe_allow_html=True)
85
 
86
+ # --- WHY THIS APP ---
87
+ st.markdown("<div class='section-title'>๐ŸŽฏ Why This App?</div>", unsafe_allow_html=True)
88
+ st.markdown("""
89
+ Because no one wants to read 1000 words when 100 will do ๐Ÿ˜…
90
  Whether you're:
91
  - A student summarizing notes or papers
92
  - A recruiter simplifying job posts
93
  - A writer condensing blogs
94
  - Or just text-fatigued
95
+
96
+ ๐Ÿ‘‰ <b>This app is for you.</b> ๐Ÿ’ช
97
  """)
98
 
99
  st.markdown("---")
100
 
101
+ # --- ABOUT ME ---
102
+ st.markdown("<div class='section-title'>๐Ÿ™‹โ€โ™‚๏ธ About Me</div>", unsafe_allow_html=True)
103
+ st.markdown("""
104
+ Hey, I'm **Mula Vamshi** โ€” a Python-powered human who builds smart, minimal apps with clean UI and real use cases.
105
+ I work with **Data Science, NLP, Automation & App Development**.
106
+
107
+ This summarizer? Just one example of what I enjoy building.
108
+
109
+ ๐Ÿ“ฌ **Letโ€™s Connect**:
110
+ - ๐Ÿ”— [LinkedIn](https://www.linkedin.com/in/vamshi-mula-946743321)
111
  - ๐Ÿ“ง [Email Me](mailto:[email protected])
112
+
113
+ > ๐Ÿ’ฌ โ€œ<i>Simplicity is my power tool. Python is my wand. Streamlit is my canvas.</i>โ€
114
+ > โ€” <b>MULA VAMSHI</b>
115
+ """, unsafe_allow_html=True)
116
+