Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,27 @@ import os
|
|
| 14 |
|
| 15 |
# Streamlit UI
|
| 16 |
st.set_page_config(page_title="PressGuard", page_icon="🛡️")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Background Image and Enhanced Styling
|
| 19 |
st.markdown(
|
|
@@ -119,8 +140,8 @@ st.markdown(
|
|
| 119 |
)
|
| 120 |
|
| 121 |
# Title and Prompt
|
| 122 |
-
|
| 123 |
-
st.markdown("<div class='prompt-box'>Paste the article content below to analyze its category with
|
| 124 |
|
| 125 |
# Check if NLTK resources are already downloaded
|
| 126 |
nltk_data_path = os.path.expanduser('~/nltk_data')
|
|
|
|
| 14 |
|
| 15 |
# Streamlit UI
|
| 16 |
st.set_page_config(page_title="PressGuard", page_icon="🛡️")
|
| 17 |
+
# Radium color effect for the title
|
| 18 |
+
st.markdown("""
|
| 19 |
+
<style>
|
| 20 |
+
.radium {
|
| 21 |
+
font-size: 60px;
|
| 22 |
+
font-weight: bold;
|
| 23 |
+
color: #f4ff81; /* Radium-like light greenish-yellow color */
|
| 24 |
+
text-shadow: 0 0 5px #f4ff81, 0 0 10px #f4ff81, 0 0 20px #f4ff81, 0 0 30px #ccff66;
|
| 25 |
+
text-align: center;
|
| 26 |
+
}
|
| 27 |
+
.tagline {
|
| 28 |
+
font-size: 20px;
|
| 29 |
+
color: #ffffff;
|
| 30 |
+
text-align: center;
|
| 31 |
+
margin-bottom: 30px;
|
| 32 |
+
}
|
| 33 |
+
</style>
|
| 34 |
+
<div class='radium'>🛡️ PressGuard</div>
|
| 35 |
+
<div class='tagline'>Classify and Filter Trustworthy News</div>
|
| 36 |
+
""", unsafe_allow_html=True)
|
| 37 |
+
|
| 38 |
|
| 39 |
# Background Image and Enhanced Styling
|
| 40 |
st.markdown(
|
|
|
|
| 140 |
)
|
| 141 |
|
| 142 |
# Title and Prompt
|
| 143 |
+
|
| 144 |
+
st.markdown("<div class='prompt-box'>Paste the article content below to analyze its category with PressGuard🛡️</div>", unsafe_allow_html=True)
|
| 145 |
|
| 146 |
# Check if NLTK resources are already downloaded
|
| 147 |
nltk_data_path = os.path.expanduser('~/nltk_data')
|