Spaces:
Sleeping
Sleeping
| 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) | |