Spaces:
Sleeping
Sleeping
Update pages/Overview.py
Browse files- 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, #
|
| 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 |
-
.
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
-
.
|
| 22 |
-
background-color:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
</style>
|
| 25 |
""", unsafe_allow_html=True)
|
| 26 |
|
| 27 |
-
|
| 28 |
-
st.markdown("<h1
|
| 29 |
-
|
| 30 |
st.markdown("---")
|
| 31 |
|
| 32 |
-
|
| 33 |
-
st.
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
| 35 |
Built using:
|
| 36 |
-
- ๐ง
|
| 37 |
-
- ๐งฐ Streamlit for
|
| 38 |
-
- ๐ซ Lottie animations for
|
| 39 |
-
""")
|
| 40 |
|
| 41 |
-
|
| 42 |
-
st.
|
| 43 |
-
|
| 44 |
- Paste any **long text** (job description, blog, article, etc.)
|
| 45 |
- Choose summarization models:
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
- Select
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
Control
|
| 54 |
-
- ๐ Short (40โ150 words)
|
| 55 |
-
- ๐ Medium (up to 300 words)
|
| 56 |
-
-
|
| 57 |
""")
|
| 58 |
|
| 59 |
-
|
| 60 |
-
st.
|
| 61 |
-
|
| 62 |
-
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
""")
|
| 70 |
|
| 71 |
-
|
| 72 |
-
st.
|
| 73 |
-
|
|
|
|
| 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 |
-
|
|
|
|
| 80 |
""")
|
| 81 |
|
| 82 |
st.markdown("---")
|
| 83 |
|
| 84 |
-
#
|
| 85 |
-
st.
|
| 86 |
-
st.
|
| 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 &
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
|
|
|
|
|
|
| 92 |
- ๐ง [Email Me](mailto:[email protected])
|
| 93 |
-
|
| 94 |
-
>
|
| 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 |
+
|