Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -173,100 +173,92 @@ def classify_display(text):
|
|
| 173 |
|
| 174 |
# ---------------- CSS refinado - tema claro agradável ----------------
|
| 175 |
custom_css = """
|
| 176 |
-
|
| 177 |
-
.gradio-container { background-color: #ffffff; color: #222; }
|
| 178 |
|
| 179 |
-
|
| 180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
color: #
|
|
|
|
|
|
|
| 185 |
border-radius: 10px !important;
|
| 186 |
-
|
| 187 |
}
|
| 188 |
|
| 189 |
-
|
| 190 |
-
|
|
|
|
| 191 |
color: white !important;
|
|
|
|
| 192 |
font-weight: 600 !important;
|
| 193 |
-
border-radius: 8px !important;
|
| 194 |
border: none !important;
|
| 195 |
-
transition: 0.2s ease-in-out;
|
|
|
|
|
|
|
|
|
|
| 196 |
}
|
| 197 |
-
|
| 198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
}
|
| 200 |
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
border:
|
| 207 |
-
color: #003366;
|
| 208 |
}
|
| 209 |
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
border: 1px solid #
|
| 214 |
-
|
| 215 |
-
display: flex;
|
| 216 |
-
align-items: center;
|
| 217 |
-
justify-content: center;
|
| 218 |
-
color: #222;
|
| 219 |
-
margin-top: 25px;
|
| 220 |
-
position: relative;
|
| 221 |
-
overflow: scroll;
|
| 222 |
-
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
|
| 223 |
}
|
| 224 |
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
font-size: 14px;
|
| 229 |
-
padding: 0;
|
| 230 |
-
background: none;
|
| 231 |
-
border: none;
|
| 232 |
-
color: #007bff;
|
| 233 |
-
cursor: pointer;
|
| 234 |
-
font-weight: bold;
|
| 235 |
-
transition: 0.15s ease-in-out;
|
| 236 |
}
|
| 237 |
-
|
| 238 |
-
color: #
|
| 239 |
-
|
| 240 |
}
|
| 241 |
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
color: #
|
| 245 |
-
font-weight: 600 !important;
|
| 246 |
-
border-radius: 6px !important;
|
| 247 |
-
padding: 4px 10px !important;
|
| 248 |
-
margin-left: 6px;
|
| 249 |
-
border: 1px solid #007aff22 !important;
|
| 250 |
}
|
| 251 |
-
|
| 252 |
-
|
| 253 |
}
|
| 254 |
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
.suggestion-box .suggestion-text {
|
| 259 |
-
width: 100%;
|
| 260 |
-
text-align: center;
|
| 261 |
-
border: none;
|
| 262 |
-
background: none;
|
| 263 |
-
color: #222;
|
| 264 |
-
font-weight: 500;
|
| 265 |
-
padding-top: 8px;
|
| 266 |
-
overflow-y: scroll;
|
| 267 |
}
|
| 268 |
|
| 269 |
-
.gradio-button { color: white !important; }
|
| 270 |
"""
|
| 271 |
|
| 272 |
|
|
|
|
| 173 |
|
| 174 |
# ---------------- CSS refinado - tema claro agradável ----------------
|
| 175 |
custom_css = """
|
| 176 |
+
/* ======== Tema Claro – Council Topics Classifier ======== */
|
|
|
|
| 177 |
|
| 178 |
+
/* Fundo principal */
|
| 179 |
+
body, .gradio-container, .gr-interface, .gr-block, .wrap.svelte-1ipelgc {
|
| 180 |
+
background-color: #ffffff !important;
|
| 181 |
+
color: #222222 !important;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
/* Cabeçalho e títulos */
|
| 185 |
+
h1, h2, h3, h4, h5, h6, label, .gr-text-input label, .gr-textbox label {
|
| 186 |
+
color: #222222 !important;
|
| 187 |
+
font-weight: 600 !important;
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
/* Texto geral */
|
| 191 |
+
p, span, div, .prose * {
|
| 192 |
+
color: #333333 !important;
|
| 193 |
+
}
|
| 194 |
|
| 195 |
+
/* Inputs e caixas */
|
| 196 |
+
textarea, input[type="text"], .gr-textbox, .gr-input, .gr-box, .gr-form, .gr-panel {
|
| 197 |
+
background-color: #ffffff !important;
|
| 198 |
+
color: #222222 !important;
|
| 199 |
+
border: 1px solid #d1d5db !important;
|
| 200 |
border-radius: 10px !important;
|
| 201 |
+
box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
|
| 202 |
}
|
| 203 |
|
| 204 |
+
/* Botões */
|
| 205 |
+
button, .gr-button {
|
| 206 |
+
background-color: #3b82f6 !important; /* azul suave */
|
| 207 |
color: white !important;
|
| 208 |
+
border-radius: 10px !important;
|
| 209 |
font-weight: 600 !important;
|
|
|
|
| 210 |
border: none !important;
|
| 211 |
+
transition: background-color 0.2s ease-in-out !important;
|
| 212 |
+
}
|
| 213 |
+
button:hover, .gr-button:hover {
|
| 214 |
+
background-color: #2563eb !important; /* azul mais escuro no hover */
|
| 215 |
}
|
| 216 |
+
|
| 217 |
+
/* Dropdowns */
|
| 218 |
+
select {
|
| 219 |
+
background-color: #ffffff !important;
|
| 220 |
+
color: #222222 !important;
|
| 221 |
+
border: 1px solid #d1d5db !important;
|
| 222 |
+
border-radius: 10px !important;
|
| 223 |
}
|
| 224 |
|
| 225 |
+
/* Caixas de saída */
|
| 226 |
+
.output-class, .output-text, .gr-highlighted, .output-box, .gr-panel.output {
|
| 227 |
+
background-color: #f9fafb !important;
|
| 228 |
+
color: #111827 !important;
|
| 229 |
+
border: 1px solid #e5e7eb !important;
|
| 230 |
+
border-radius: 10px !important;
|
|
|
|
| 231 |
}
|
| 232 |
|
| 233 |
+
/* Sugestões ou resultados */
|
| 234 |
+
.suggestions-box, .gradio-container .gr-column.output {
|
| 235 |
+
background-color: #ffffff !important;
|
| 236 |
+
border: 1px solid #e5e7eb !important;
|
| 237 |
+
box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
}
|
| 239 |
|
| 240 |
+
/* Scrollbars subtis */
|
| 241 |
+
::-webkit-scrollbar {
|
| 242 |
+
width: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
}
|
| 244 |
+
::-webkit-scrollbar-thumb {
|
| 245 |
+
background-color: #d1d5db;
|
| 246 |
+
border-radius: 4px;
|
| 247 |
}
|
| 248 |
|
| 249 |
+
/* Links */
|
| 250 |
+
a {
|
| 251 |
+
color: #2563eb !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
}
|
| 253 |
+
a:hover {
|
| 254 |
+
text-decoration: underline !important;
|
| 255 |
}
|
| 256 |
|
| 257 |
+
/* Ocultar bordas de debug / espaços */
|
| 258 |
+
div[style*="background: var(--neutral-950)"] {
|
| 259 |
+
background: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
}
|
| 261 |
|
|
|
|
| 262 |
"""
|
| 263 |
|
| 264 |
|