anonymous12321 commited on
Commit
d102a6e
·
verified ·
1 Parent(s): a445c12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +93 -13
app.py CHANGED
@@ -171,22 +171,102 @@ def classify_display(text):
171
 
172
  # ---------------- CSS ----------------
173
 
 
174
  custom_css = """
175
- body { background-color: #ffffff; color: #111; font-family: 'Inter', sans-serif; }
176
- .gradio-container { background-color: #ffffff; color: #111; }
177
- h2, h3 { text-align: center; color: #004b8d; font-weight: 600; }
178
- textarea { background-color: #fafafa !important; color: #111 !important; border-radius: 10px !important; border: 1px solid #ccc !important; }
179
- button { background-color: #007aff !important; color: white !important; font-weight: 600 !important; border-radius: 8px !important; border: none !important; }
180
- button:hover { background-color: #005fcc !important; }
181
- .output-chip { background-color: #f4f4f4; padding: 5px 12px; border-radius: 8px; font-weight: 500; border: 1px solid #007aff33; color: #004b8d; }
182
- .suggestion-box { background-color: #f7f9fc; border-radius: 10px; border: 1px solid #ccd8e0; padding: 10px; display: flex; align-items: center; justify-content: center; color: #111; margin-top: 25px; position: relative; overflow: scroll; }
183
- .arrow-btn { width: 25px; height: 25px; font-size: 12px; padding: 0; background: none; border: none; color: #004b8d; cursor: pointer; font-weight: bold; }
184
- .arrow-btn:hover { color: #002b5b; transform: scale(1.3); }
185
- .use-btn { background-color:#66b3ff !important; color:#000 !important; font-weight:600 !important; border-radius:6px !important; padding:3px 8px !important; margin-left:5px;}
186
- .use-btn:hover { background-color:#99ccff !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  .suggestion-box .prev-btn { position: absolute; top: 5px; left: 5px; }
188
  .suggestion-box .next-btn { position: absolute; top: 5px; right: 5px; }
189
- .suggestion-box .suggestion-text { width: 100%; text-align: center; border:none; background:none; color:#111; font-weight:500; padding-top:8px; overflow-y: scroll;}
 
 
 
 
 
 
 
 
 
 
 
 
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