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