Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -171,22 +171,102 @@ def classify_display(text):
|
|
| 171 |
|
| 172 |
# ---------------- CSS ----------------
|
| 173 |
|
|
|
|
| 174 |
custom_css = """
|
| 175 |
-
body { background-color: #ffffff; color: #
|
| 176 |
-
.gradio-container { background-color: #ffffff; color: #
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
.suggestion-box .prev-btn { position: absolute; top: 5px; left: 5px; }
|
| 188 |
.suggestion-box .next-btn { position: absolute; top: 5px; right: 5px; }
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
"""
|
| 191 |
|
| 192 |
|
|
|
|
| 171 |
|
| 172 |
# ---------------- CSS ----------------
|
| 173 |
|
| 174 |
+
# ---------------- CSS refinado - tema claro agradável ----------------
|
| 175 |
custom_css = """
|
| 176 |
+
body { background-color: #ffffff; color: #222; font-family: 'Inter', sans-serif; }
|
| 177 |
+
.gradio-container { background-color: #ffffff; color: #222; }
|
| 178 |
+
|
| 179 |
+
h2 { text-align: center; color: #0056b3; font-weight: 700; }
|
| 180 |
+
h3 { text-align: center; color: #0066cc; font-weight: 600; }
|
| 181 |
+
|
| 182 |
+
textarea {
|
| 183 |
+
background-color: #f9fafc !important;
|
| 184 |
+
color: #222 !important;
|
| 185 |
+
border-radius: 10px !important;
|
| 186 |
+
border: 1px solid #d0d7de !important;
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
button {
|
| 190 |
+
background-color: #007bff !important;
|
| 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 |
+
button:hover {
|
| 198 |
+
background-color: #005fcc !important;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
.output-chip {
|
| 202 |
+
background-color: #eef4ff;
|
| 203 |
+
padding: 5px 12px;
|
| 204 |
+
border-radius: 8px;
|
| 205 |
+
font-weight: 500;
|
| 206 |
+
border: 1px solid #007aff33;
|
| 207 |
+
color: #003366;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
.suggestion-box {
|
| 211 |
+
background-color: #f6f9fc;
|
| 212 |
+
border-radius: 10px;
|
| 213 |
+
border: 1px solid #ccd8e0;
|
| 214 |
+
padding: 12px;
|
| 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 |
+
.arrow-btn {
|
| 226 |
+
width: 26px;
|
| 227 |
+
height: 26px;
|
| 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 |
+
.arrow-btn:hover {
|
| 238 |
+
color: #003366;
|
| 239 |
+
transform: scale(1.25);
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
.use-btn {
|
| 243 |
+
background-color: #66b3ff !important;
|
| 244 |
+
color: #000 !important;
|
| 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 |
+
.use-btn:hover {
|
| 252 |
+
background-color: #99ccff !important;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
.suggestion-box .prev-btn { position: absolute; top: 5px; left: 5px; }
|
| 256 |
.suggestion-box .next-btn { position: absolute; top: 5px; right: 5px; }
|
| 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 |
|