ISOM5240GP4 commited on
Commit
305441b
·
verified ·
1 Parent(s): 7f5130a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -10
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: 16px;
118
- padding: 10px 20px;
119
  border: none;
120
  border-radius: 5px;
121
  }
@@ -124,26 +124,29 @@ Sarah
124
  }
125
  /* Result boxes */
126
  .spam-result {
127
- background-color: #ffcccc;
128
  padding: 10px;
129
  border-radius: 5px;
130
- border: 1px solid #ff9999;
131
  }
132
  .positive-result {
133
- background-color: #ccffcc;
134
  padding: 10px;
135
  border-radius: 5px;
136
- border: 1px solid #99cc99;
137
  }
138
  .negative-result {
139
- background-color: #fff3cc;
140
  padding: 10px;
141
  border-radius: 5px;
142
- border: 1px solid #ffcc66;
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([1, 1])
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: