Update app.py
Browse files
app.py
CHANGED
|
@@ -166,8 +166,8 @@ CSS = """
|
|
| 166 |
* { box-sizing: border-box; margin: 0; padding: 0; }
|
| 167 |
|
| 168 |
body, .gradio-container {
|
| 169 |
-
background: #
|
| 170 |
-
color: #
|
| 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 #
|
| 179 |
margin-bottom: 1.5rem;
|
| 180 |
}
|
| 181 |
.twt-title {
|
| 182 |
font-size: 2rem;
|
| 183 |
font-weight: 600;
|
| 184 |
letter-spacing: -0.03em;
|
| 185 |
-
color: #
|
| 186 |
font-family: 'JetBrains Mono', monospace;
|
| 187 |
}
|
| 188 |
-
.twt-title span { color: #
|
| 189 |
.twt-sub {
|
| 190 |
font-size: 0.8rem;
|
| 191 |
-
color: #
|
| 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: #
|
| 202 |
letter-spacing: 0.06em;
|
| 203 |
text-transform: uppercase;
|
| 204 |
margin-bottom: 0.5rem;
|
| 205 |
}
|
| 206 |
textarea {
|
| 207 |
-
background: #
|
| 208 |
-
border: 1px solid #
|
| 209 |
border-radius: 8px !important;
|
| 210 |
-
color: #
|
| 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: #
|
| 217 |
outline: none !important;
|
| 218 |
}
|
| 219 |
|
| 220 |
/* Button */
|
| 221 |
button.primary {
|
| 222 |
-
background: #
|
| 223 |
-
color: #
|
| 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: #
|
| 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: #
|
| 244 |
-
border: 1px solid #
|
| 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: #
|
| 252 |
-
background: #
|
| 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: #
|
| 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: #
|
| 272 |
-
.badge-fail { background: #
|
| 273 |
-
.badge-final { background: #
|
| 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: #
|
| 282 |
font-family: 'JetBrains Mono', monospace;
|
| 283 |
-
padding: 0.
|
| 284 |
-
border-bottom: 1px solid #
|
| 285 |
}
|
| 286 |
.dot {
|
| 287 |
width: 8px; height: 8px;
|
| 288 |
border-radius: 50%;
|
| 289 |
flex-shrink: 0;
|
| 290 |
}
|
| 291 |
-
.dot-ok { background: #
|
| 292 |
-
.dot-fail { background: #
|
| 293 |
-
.dot-final { background: #
|
| 294 |
|
| 295 |
.trace-summary { margin-top: 1rem; }
|
| 296 |
-
.trace-label { font-size: 0.7rem; color: #
|
| 297 |
-
.trace-bar-bg { background: #
|
| 298 |
.trace-bar { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
|
| 299 |
-
.trace-pct { font-size: 0.75rem; color: #
|
| 300 |
|
| 301 |
/* Panel labels */
|
| 302 |
.panel-label {
|
| 303 |
font-size: 0.7rem;
|
| 304 |
font-weight: 600;
|
| 305 |
-
color: #
|
| 306 |
text-transform: uppercase;
|
| 307 |
letter-spacing: 0.1em;
|
| 308 |
margin-bottom: 0.75rem;
|
| 309 |
padding-bottom: 0.5rem;
|
| 310 |
-
border-bottom: 1px solid #
|
| 311 |
}
|
| 312 |
|
| 313 |
/* Messages */
|
| 314 |
.msg { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.85rem; }
|
| 315 |
-
.msg.warn { background: #
|
| 316 |
-
.msg.error { background: #
|
| 317 |
-
.msg.empty { color: #
|
| 318 |
|
| 319 |
/* Output panels */
|
| 320 |
.output-panel {
|
| 321 |
-
background: #
|
| 322 |
-
border: 1px solid #
|
| 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;
|