File size: 3,787 Bytes
92b1d64
 
 
 
1ddee5b
92b1d64
 
 
1ddee5b
92b1d64
 
 
1ddee5b
92b1d64
 
 
1ddee5b
 
 
 
 
 
 
 
 
 
 
 
92b1d64
1ddee5b
 
 
 
 
 
92b1d64
 
 
 
1ddee5b
 
92b1d64
 
1ddee5b
 
 
 
 
 
92b1d64
1ddee5b
 
 
 
92b1d64
1ddee5b
 
 
92b1d64
 
1ddee5b
 
 
 
 
 
 
 
 
 
 
92b1d64
 
1ddee5b
 
 
 
 
 
 
 
 
 
 
92b1d64
1ddee5b
 
 
 
92b1d64
 
 
 
 
1ddee5b
 
92b1d64
 
 
 
1ddee5b
 
 
 
 
 
 
 
 
 
92b1d64
1ddee5b
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
import streamlit as st
from streamlit_lottie import st_lottie
import requests

# --- CUSTOM CSS FOR STYLING ---
st.markdown("""
    <style>
    .stApp {
        background-image: linear-gradient(to right, #f4f4f4, #ffffff);
        color: #333333;
        font-family: 'Segoe UI', sans-serif;
    }
    h1, h2, h3 {
        text-align: center;
        color: #1a1a1a;
    }
    .highlight {
        background-color: #f0f8ff;
        border-left: 6px solid #1890ff;
        padding: 10px 15px;
        margin: 15px 0;
        border-radius: 5px;
    }
    .section-title {
        font-size: 20px;
        font-weight: bold;
        color: #005691;
        margin-top: 30px;
    }
    .info-box {
        background-color: #fffbe6;
        border-left: 6px solid #faad14;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 15px;
    }
    </style>
""", unsafe_allow_html=True)

# --- HEADER TITLE ---
st.markdown("<h1>๐Ÿ“ Text Summarization App</h1>", unsafe_allow_html=True)
st.markdown("---")

# --- ABOUT APP ---
st.markdown("<div class='section-title'>๐Ÿ” About the App</div>", unsafe_allow_html=True)
st.markdown("""
<div class='highlight'>
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 ๐Ÿค–.
</div>
Built using:
- ๐Ÿง  <code>transformers</code> (Hugging Face)
- ๐Ÿงฐ Streamlit for the web interface
- ๐Ÿ’ซ Lottie animations for smoother experience
""", unsafe_allow_html=True)

# --- WHAT YOU CAN DO ---
st.markdown("<div class='section-title'>๐Ÿ’ก What Can You Do?</div>", unsafe_allow_html=True)
st.markdown("""
- Paste any **long text** (job description, blog, article, etc.)
- Choose summarization models:
    - `facebook/bart-large-cnn` (BART)
    - `t5-small` (T5)
    - `google/pegasus-cnn_dailymail` (PEGASUS)
- Select output format:
    - ๐Ÿ“„ Paragraph
    - ๐Ÿ”น Bullet Points
    - ๐Ÿ› ๏ธ Custom (via sliders)
- Control summary length with:
    - ๐Ÿ“‰ Short (40โ€“150 words)
    - ๐Ÿ“ˆ Medium (up to 300 words)
    - ๐ŸŽ›๏ธ Custom sliders for min/max
""")

# --- SMART FEATURES ---
st.markdown("<div class='section-title'>๐Ÿงฎ Smart Features</div>", unsafe_allow_html=True)
st.markdown("""
<div class='info-box'>
โœ”๏ธ Real-time <b>word count display</b> (before & after summary)  
โœ”๏ธ ๐Ÿ’พ Save summaries with: timestamp, model used, original + summarized text  
โœ”๏ธ ๐Ÿ“š View saved summary history  
โœ”๏ธ ๐Ÿ“ฅ One-click download of summaries as <code>.txt</code> files  
โœ”๏ธ <b>Everything runs locally</b> โ€” no data shared ๐ŸŒ
</div>
""", unsafe_allow_html=True)

# --- WHY THIS APP ---
st.markdown("<div class='section-title'>๐ŸŽฏ Why This App?</div>", unsafe_allow_html=True)
st.markdown("""
Because no one wants to read 1000 words when 100 will do ๐Ÿ˜…  
Whether you're:
- A student summarizing notes or papers
- A recruiter simplifying job posts
- A writer condensing blogs
- Or just text-fatigued

๐Ÿ‘‰ <b>This app is for you.</b> ๐Ÿ’ช
""")

st.markdown("---")

# --- ABOUT ME ---
st.markdown("<div class='section-title'>๐Ÿ™‹โ€โ™‚๏ธ About Me</div>", unsafe_allow_html=True)
st.markdown("""
Hey, I'm **Mula Vamshi** โ€” a Python-powered human who builds smart, minimal apps with clean UI and real use cases.  
I work with **Data Science, NLP, Automation & App Development**.

This summarizer? Just one example of what I enjoy building.

๐Ÿ“ฌ **Letโ€™s Connect**:  
- ๐Ÿ”— [LinkedIn](https://www.linkedin.com/in/vamshi-mula-946743321)  
- ๐Ÿ“ง [Email Me](mailto:[email protected])

> ๐Ÿ’ฌ โ€œ<i>Simplicity is my power tool. Python is my wand. Streamlit is my canvas.</i>โ€  
> โ€” <b>MULA VAMSHI</b>
""", unsafe_allow_html=True)