import streamlit as st
from streamlit_lottie import st_lottie
import requests
# --- CUSTOM CSS FOR STYLING ---
st.markdown("""
""", unsafe_allow_html=True)
# --- HEADER TITLE ---
st.markdown("
📝 Text Summarization App
", unsafe_allow_html=True)
st.markdown("---")
# --- ABOUT APP ---
st.markdown("🔍 About the App
", unsafe_allow_html=True)
st.markdown("""
This is a powerful, interactive Text Summarization App that lets you convert long-form content into concise summaries with just one click — powered by state-of-the-art Transformer models from Hugging Face 🤖.
Built using:
- 🧠 transformers (Hugging Face)
- 🧰 Streamlit for the web interface
- 💫 Lottie animations for smoother experience
""", unsafe_allow_html=True)
# --- WHAT YOU CAN DO ---
st.markdown("💡 What Can You Do?
", 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("🧮 Smart Features
", unsafe_allow_html=True)
st.markdown("""
✔️ Real-time word count display (before & after summary)
✔️ 💾 Save summaries with: timestamp, model used, original + summarized text
✔️ 📚 View saved summary history
✔️ 📥 One-click download of summaries as .txt files
✔️ Everything runs locally — no data shared 🌐
""", unsafe_allow_html=True)
# --- WHY THIS APP ---
st.markdown("🎯 Why This App?
", 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
👉 This app is for you. 💪
""")
st.markdown("---")
# --- ABOUT ME ---
st.markdown("🙋♂️ About Me
", 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:mulavamshi1426@gmail.com)
> 💬 “Simplicity is my power tool. Python is my wand. Streamlit is my canvas.”
> — MULA VAMSHI
""", unsafe_allow_html=True)