Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ Sarah
|
|
99 |
st.markdown("""
|
100 |
<style>
|
101 |
/* Style for sample buttons (smaller, light gray) */
|
102 |
-
div.stButton > button[kind="secondary"] {
|
103 |
font-size: 12px;
|
104 |
padding: 5px 10px;
|
105 |
background-color: #f0f0f0;
|
@@ -109,8 +109,8 @@ Sarah
|
|
109 |
}
|
110 |
/* Analyze Email button (orange, matches Clear button size) */
|
111 |
div.stButton > button[key="analyze"] {
|
112 |
-
background-color: #FF5733; /*
|
113 |
-
color: white;
|
114 |
font-size: 18px;
|
115 |
padding: 12px 24px;
|
116 |
border: none;
|
@@ -121,12 +121,12 @@ Sarah
|
|
121 |
text-align: center;
|
122 |
}
|
123 |
div.stButton > button[key="analyze"]:hover {
|
124 |
-
background-color: #E74C3C; /* Darker orange on hover */
|
125 |
}
|
126 |
/* Clear button (gray, aligned with Analyze) */
|
127 |
div.stButton > button[key="clear"] {
|
128 |
-
background-color: #d3d3d3;
|
129 |
-
color: #333333;
|
130 |
font-size: 18px;
|
131 |
padding: 12px 24px;
|
132 |
border: none;
|
@@ -137,7 +137,7 @@ Sarah
|
|
137 |
text-align: center;
|
138 |
}
|
139 |
div.stButton > button[key="clear"]:hover {
|
140 |
-
background-color: #b0b0b0; /* Darker gray on hover */
|
141 |
}
|
142 |
/* Result boxes with updated colors */
|
143 |
.spam-result {
|
@@ -194,7 +194,7 @@ Sarah
|
|
194 |
# Layout for action buttons (Analyze and Clear) in 2 columns
|
195 |
col_analyze, col_clear = st.columns(2)
|
196 |
with col_analyze:
|
197 |
-
# Button to trigger email analysis
|
198 |
if st.button("Analyze Email", key="analyze"):
|
199 |
if email_body:
|
200 |
with st.spinner("Analyzing email..."): # Show spinner during processing
|
|
|
99 |
st.markdown("""
|
100 |
<style>
|
101 |
/* Style for sample buttons (smaller, light gray) */
|
102 |
+
div.stButton > button[kind="secondary"]:not([key="clear"]) {
|
103 |
font-size: 12px;
|
104 |
padding: 5px 10px;
|
105 |
background-color: #f0f0f0;
|
|
|
109 |
}
|
110 |
/* Analyze Email button (orange, matches Clear button size) */
|
111 |
div.stButton > button[key="analyze"] {
|
112 |
+
background-color: #FF5733 !important; /* Force orange color */
|
113 |
+
color: white !important;
|
114 |
font-size: 18px;
|
115 |
padding: 12px 24px;
|
116 |
border: none;
|
|
|
121 |
text-align: center;
|
122 |
}
|
123 |
div.stButton > button[key="analyze"]:hover {
|
124 |
+
background-color: #E74C3C !important; /* Darker orange on hover */
|
125 |
}
|
126 |
/* Clear button (gray, aligned with Analyze) */
|
127 |
div.stButton > button[key="clear"] {
|
128 |
+
background-color: #d3d3d3 !important; /* Force gray color */
|
129 |
+
color: #333333 !important;
|
130 |
font-size: 18px;
|
131 |
padding: 12px 24px;
|
132 |
border: none;
|
|
|
137 |
text-align: center;
|
138 |
}
|
139 |
div.stButton > button[key="clear"]:hover {
|
140 |
+
background-color: #b0b0b0 !important; /* Darker gray on hover */
|
141 |
}
|
142 |
/* Result boxes with updated colors */
|
143 |
.spam-result {
|
|
|
194 |
# Layout for action buttons (Analyze and Clear) in 2 columns
|
195 |
col_analyze, col_clear = st.columns(2)
|
196 |
with col_analyze:
|
197 |
+
# Button to trigger email analysis (no type="primary" to rely on CSS)
|
198 |
if st.button("Analyze Email", key="analyze"):
|
199 |
if email_body:
|
200 |
with st.spinner("Analyzing email..."): # Show spinner during processing
|