Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -114,8 +114,8 @@ Sarah
|
|
114 |
div.stButton > button[kind="secondary"][key="clear"] {
|
115 |
background-color: #d3d3d3;
|
116 |
color: #333333;
|
117 |
-
font-size:
|
118 |
-
padding:
|
119 |
border: none;
|
120 |
border-radius: 5px;
|
121 |
}
|
@@ -124,26 +124,29 @@ Sarah
|
|
124 |
}
|
125 |
/* Result boxes */
|
126 |
.spam-result {
|
127 |
-
background-color: #
|
128 |
padding: 10px;
|
129 |
border-radius: 5px;
|
130 |
-
border: 1px solid #
|
131 |
}
|
132 |
.positive-result {
|
133 |
-
background-color: #
|
134 |
padding: 10px;
|
135 |
border-radius: 5px;
|
136 |
-
border: 1px solid #
|
137 |
}
|
138 |
.negative-result {
|
139 |
-
background-color: #
|
140 |
padding: 10px;
|
141 |
border-radius: 5px;
|
142 |
-
border: 1px solid #
|
143 |
}
|
144 |
</style>
|
145 |
""", unsafe_allow_html=True)
|
146 |
|
|
|
|
|
|
|
147 |
# Sample buttons (in columns)
|
148 |
col1, col2, col3 = st.columns(3)
|
149 |
with col1:
|
@@ -165,8 +168,8 @@ Sarah
|
|
165 |
st.session_state.result_type = ""
|
166 |
st.rerun()
|
167 |
|
168 |
-
# Analyze and Clear buttons (in a row)
|
169 |
-
col_analyze, col_clear = st.columns(
|
170 |
with col_analyze:
|
171 |
if st.button("Analyze Email", key="analyze", type="primary"):
|
172 |
if email_body:
|
|
|
114 |
div.stButton > button[kind="secondary"][key="clear"] {
|
115 |
background-color: #d3d3d3;
|
116 |
color: #333333;
|
117 |
+
font-size: 18px; /* Match Analyze Email size */
|
118 |
+
padding: 12px 24px; /* Match Analyze Email padding */
|
119 |
border: none;
|
120 |
border-radius: 5px;
|
121 |
}
|
|
|
124 |
}
|
125 |
/* Result boxes */
|
126 |
.spam-result {
|
127 |
+
background-color: #ffdddd; /* Softer red */
|
128 |
padding: 10px;
|
129 |
border-radius: 5px;
|
130 |
+
border: 1px solid #ffaaaa;
|
131 |
}
|
132 |
.positive-result {
|
133 |
+
background-color: #d4edda; /* Softer green */
|
134 |
padding: 10px;
|
135 |
border-radius: 5px;
|
136 |
+
border: 1px solid #a3d7a9;
|
137 |
}
|
138 |
.negative-result {
|
139 |
+
background-color: #fff4e6; /* Softer orange */
|
140 |
padding: 10px;
|
141 |
border-radius: 5px;
|
142 |
+
border: 1px solid #ffd6a5;
|
143 |
}
|
144 |
</style>
|
145 |
""", unsafe_allow_html=True)
|
146 |
|
147 |
+
# Subheading for sample buttons
|
148 |
+
st.subheader("Examples")
|
149 |
+
|
150 |
# Sample buttons (in columns)
|
151 |
col1, col2, col3 = st.columns(3)
|
152 |
with col1:
|
|
|
168 |
st.session_state.result_type = ""
|
169 |
st.rerun()
|
170 |
|
171 |
+
# Analyze and Clear buttons (aligned in a row)
|
172 |
+
col_analyze, col_clear = st.columns(2)
|
173 |
with col_analyze:
|
174 |
if st.button("Analyze Email", key="analyze", type="primary"):
|
175 |
if email_body:
|