realArceus commited on
Commit
7cf695b
·
verified ·
1 Parent(s): 2a7c881

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -38
app.py CHANGED
@@ -166,8 +166,8 @@ CSS = """
166
  * { box-sizing: border-box; margin: 0; padding: 0; }
167
 
168
  body, .gradio-container {
169
- background: #0a0a0f !important;
170
- color: #e2e8f0 !important;
171
  font-family: 'Inter', sans-serif !important;
172
  }
173
 
@@ -175,20 +175,20 @@ body, .gradio-container {
175
  .twt-header {
176
  text-align: center;
177
  padding: 2.5rem 1rem 1.5rem;
178
- border-bottom: 1px solid #1e1e2e;
179
  margin-bottom: 1.5rem;
180
  }
181
  .twt-title {
182
  font-size: 2rem;
183
  font-weight: 600;
184
  letter-spacing: -0.03em;
185
- color: #f1f5f9;
186
  font-family: 'JetBrains Mono', monospace;
187
  }
188
- .twt-title span { color: #818cf8; }
189
  .twt-sub {
190
  font-size: 0.8rem;
191
- color: #64748b;
192
  margin-top: 0.4rem;
193
  letter-spacing: 0.08em;
194
  text-transform: uppercase;
@@ -198,29 +198,29 @@ body, .gradio-container {
198
  .input-label {
199
  font-size: 0.75rem;
200
  font-weight: 500;
201
- color: #64748b;
202
  letter-spacing: 0.06em;
203
  text-transform: uppercase;
204
  margin-bottom: 0.5rem;
205
  }
206
  textarea {
207
- background: #0f0f1a !important;
208
- border: 1px solid #1e1e2e !important;
209
  border-radius: 8px !important;
210
- color: #e2e8f0 !important;
211
  font-family: 'Inter', sans-serif !important;
212
  font-size: 0.95rem !important;
213
  transition: border-color 0.2s !important;
214
  }
215
  textarea:focus {
216
- border-color: #818cf8 !important;
217
  outline: none !important;
218
  }
219
 
220
  /* Button */
221
  button.primary {
222
- background: #818cf8 !important;
223
- color: #0a0a0f !important;
224
  font-weight: 600 !important;
225
  font-family: 'Inter', sans-serif !important;
226
  border: none !important;
@@ -231,7 +231,7 @@ button.primary {
231
  transition: background 0.2s !important;
232
  cursor: pointer !important;
233
  }
234
- button.primary:hover { background: #6366f1 !important; }
235
 
236
  /* Step cards */
237
  .step-card {
@@ -240,23 +240,23 @@ button.primary:hover { background: #6366f1 !important; }
240
  gap: 0.75rem;
241
  padding: 0.75rem 1rem;
242
  margin-bottom: 0.5rem;
243
- background: #0f0f1a;
244
- border: 1px solid #1e1e2e;
245
  border-radius: 8px;
246
  font-size: 0.88rem;
247
  line-height: 1.6;
248
  animation: fadeSlide 0.25s ease both;
249
  }
250
  .step-card.step-fault {
251
- border-color: #450a0a;
252
- background: #150a0a;
253
  }
254
  @keyframes fadeSlide {
255
  from { opacity: 0; transform: translateY(6px); }
256
  to { opacity: 1; transform: translateY(0); }
257
  }
258
  .step-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
259
- .step-text { flex: 1; color: #cbd5e1; font-family: 'Inter', sans-serif; }
260
  .badge {
261
  flex-shrink: 0;
262
  font-size: 0.65rem;
@@ -268,9 +268,9 @@ button.primary:hover { background: #6366f1 !important; }
268
  align-self: flex-start;
269
  margin-top: 2px;
270
  }
271
- .badge-ok { background: #052e16; color: #4ade80; }
272
- .badge-fail { background: #450a0a; color: #f87171; }
273
- .badge-final { background: #1e1b4b; color: #818cf8; }
274
 
275
  /* Trace panel */
276
  .trace-row {
@@ -278,48 +278,48 @@ button.primary:hover { background: #6366f1 !important; }
278
  align-items: center;
279
  gap: 0.6rem;
280
  font-size: 0.8rem;
281
- color: #64748b;
282
  font-family: 'JetBrains Mono', monospace;
283
- padding: 0.3rem 0;
284
- border-bottom: 1px solid #0f0f1a;
285
  }
286
  .dot {
287
  width: 8px; height: 8px;
288
  border-radius: 50%;
289
  flex-shrink: 0;
290
  }
291
- .dot-ok { background: #4ade80; }
292
- .dot-fail { background: #f87171; box-shadow: 0 0 6px #f87171; }
293
- .dot-final { background: #818cf8; }
294
 
295
  .trace-summary { margin-top: 1rem; }
296
- .trace-label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
297
- .trace-bar-bg { background: #1e1e2e; border-radius: 4px; height: 6px; overflow: hidden; }
298
  .trace-bar { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
299
- .trace-pct { font-size: 0.75rem; color: #94a3b8; margin-top: 0.3rem; font-family: 'JetBrains Mono', monospace; }
300
 
301
  /* Panel labels */
302
  .panel-label {
303
  font-size: 0.7rem;
304
  font-weight: 600;
305
- color: #475569;
306
  text-transform: uppercase;
307
  letter-spacing: 0.1em;
308
  margin-bottom: 0.75rem;
309
  padding-bottom: 0.5rem;
310
- border-bottom: 1px solid #1e1e2e;
311
  }
312
 
313
  /* Messages */
314
  .msg { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.85rem; }
315
- .msg.warn { background: #1c1700; color: #fbbf24; border: 1px solid #292400; }
316
- .msg.error { background: #150a0a; color: #f87171; border: 1px solid #450a0a; }
317
- .msg.empty { color: #334155; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; }
318
 
319
  /* Output panels */
320
  .output-panel {
321
- background: #0a0a0f;
322
- border: 1px solid #1e1e2e;
323
  border-radius: 10px;
324
  padding: 1rem;
325
  min-height: 200px;
 
166
  * { box-sizing: border-box; margin: 0; padding: 0; }
167
 
168
  body, .gradio-container {
169
+ background: #1e1e2e !important;
170
+ color: #cdd6f4 !important;
171
  font-family: 'Inter', sans-serif !important;
172
  }
173
 
 
175
  .twt-header {
176
  text-align: center;
177
  padding: 2.5rem 1rem 1.5rem;
178
+ border-bottom: 1px solid #313244;
179
  margin-bottom: 1.5rem;
180
  }
181
  .twt-title {
182
  font-size: 2rem;
183
  font-weight: 600;
184
  letter-spacing: -0.03em;
185
+ color: #cdd6f4;
186
  font-family: 'JetBrains Mono', monospace;
187
  }
188
+ .twt-title span { color: #cba6f7; }
189
  .twt-sub {
190
  font-size: 0.8rem;
191
+ color: #6c7086;
192
  margin-top: 0.4rem;
193
  letter-spacing: 0.08em;
194
  text-transform: uppercase;
 
198
  .input-label {
199
  font-size: 0.75rem;
200
  font-weight: 500;
201
+ color: #a6adc8;
202
  letter-spacing: 0.06em;
203
  text-transform: uppercase;
204
  margin-bottom: 0.5rem;
205
  }
206
  textarea {
207
+ background: #181825 !important;
208
+ border: 1px solid #45475a !important;
209
  border-radius: 8px !important;
210
+ color: #cdd6f4 !important;
211
  font-family: 'Inter', sans-serif !important;
212
  font-size: 0.95rem !important;
213
  transition: border-color 0.2s !important;
214
  }
215
  textarea:focus {
216
+ border-color: #cba6f7 !important;
217
  outline: none !important;
218
  }
219
 
220
  /* Button */
221
  button.primary {
222
+ background: #cba6f7 !important;
223
+ color: #1e1e2e !important;
224
  font-weight: 600 !important;
225
  font-family: 'Inter', sans-serif !important;
226
  border: none !important;
 
231
  transition: background 0.2s !important;
232
  cursor: pointer !important;
233
  }
234
+ button.primary:hover { background: #b4befe !important; }
235
 
236
  /* Step cards */
237
  .step-card {
 
240
  gap: 0.75rem;
241
  padding: 0.75rem 1rem;
242
  margin-bottom: 0.5rem;
243
+ background: #181825;
244
+ border: 1px solid #313244;
245
  border-radius: 8px;
246
  font-size: 0.88rem;
247
  line-height: 1.6;
248
  animation: fadeSlide 0.25s ease both;
249
  }
250
  .step-card.step-fault {
251
+ border-color: #f38ba8;
252
+ background: #2a1520;
253
  }
254
  @keyframes fadeSlide {
255
  from { opacity: 0; transform: translateY(6px); }
256
  to { opacity: 1; transform: translateY(0); }
257
  }
258
  .step-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
259
+ .step-text { flex: 1; color: #cdd6f4; font-family: 'Inter', sans-serif; }
260
  .badge {
261
  flex-shrink: 0;
262
  font-size: 0.65rem;
 
268
  align-self: flex-start;
269
  margin-top: 2px;
270
  }
271
+ .badge-ok { background: #1e3a2a; color: #a6e3a1; border: 1px solid #a6e3a1; }
272
+ .badge-fail { background: #3a1e22; color: #f38ba8; border: 1px solid #f38ba8; }
273
+ .badge-final { background: #2a1e3a; color: #cba6f7; border: 1px solid #cba6f7; }
274
 
275
  /* Trace panel */
276
  .trace-row {
 
278
  align-items: center;
279
  gap: 0.6rem;
280
  font-size: 0.8rem;
281
+ color: #a6adc8;
282
  font-family: 'JetBrains Mono', monospace;
283
+ padding: 0.35rem 0;
284
+ border-bottom: 1px solid #313244;
285
  }
286
  .dot {
287
  width: 8px; height: 8px;
288
  border-radius: 50%;
289
  flex-shrink: 0;
290
  }
291
+ .dot-ok { background: #a6e3a1; }
292
+ .dot-fail { background: #f38ba8; box-shadow: 0 0 6px #f38ba8; }
293
+ .dot-final { background: #cba6f7; }
294
 
295
  .trace-summary { margin-top: 1rem; }
296
+ .trace-label { font-size: 0.7rem; color: #a6adc8; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
297
+ .trace-bar-bg { background: #313244; border-radius: 4px; height: 6px; overflow: hidden; }
298
  .trace-bar { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
299
+ .trace-pct { font-size: 0.75rem; color: #a6adc8; margin-top: 0.3rem; font-family: 'JetBrains Mono', monospace; }
300
 
301
  /* Panel labels */
302
  .panel-label {
303
  font-size: 0.7rem;
304
  font-weight: 600;
305
+ color: #a6adc8;
306
  text-transform: uppercase;
307
  letter-spacing: 0.1em;
308
  margin-bottom: 0.75rem;
309
  padding-bottom: 0.5rem;
310
+ border-bottom: 1px solid #313244;
311
  }
312
 
313
  /* Messages */
314
  .msg { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.85rem; }
315
+ .msg.warn { background: #2a2010; color: #f9e2af; border: 1px solid #f9e2af; }
316
+ .msg.error { background: #2a1520; color: #f38ba8; border: 1px solid #f38ba8; }
317
+ .msg.empty { color: #6c7086; font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; }
318
 
319
  /* Output panels */
320
  .output-panel {
321
+ background: #181825;
322
+ border: 1px solid #313244;
323
  border-radius: 10px;
324
  padding: 1rem;
325
  min-height: 200px;