Nischal Subedi
commited on
Commit
·
f6c4512
1
Parent(s):
ba2b925
UI update
Browse files
app.py
CHANGED
|
@@ -245,6 +245,7 @@ Answer:"""
|
|
| 245 |
|
| 246 |
|
| 247 |
|
|
|
|
| 248 |
def gradio_interface(self):
|
| 249 |
def query_interface_wrapper(api_key: str, query: str, state: str) -> str:
|
| 250 |
# Basic client-side validation for immediate feedback (redundant but good UX)
|
|
@@ -302,7 +303,7 @@ Answer:"""
|
|
| 302 |
--primary-hover: #E07B00;
|
| 303 |
--background-primary: hsl(30, 100%, 99.9%);
|
| 304 |
--background-secondary: hsl(30, 100%, 96%);
|
| 305 |
-
--text-primary: #
|
| 306 |
--text-secondary: #8C7B6F;
|
| 307 |
--border-color: hsl(30, 70%, 85%);
|
| 308 |
--border-focus: #FF8C00;
|
|
@@ -315,7 +316,7 @@ Answer:"""
|
|
| 315 |
}
|
| 316 |
|
| 317 |
body, html {
|
| 318 |
-
background-color: var(--background-
|
| 319 |
color: var(--text-primary) !important;
|
| 320 |
transition: none !important;
|
| 321 |
}
|
|
@@ -324,7 +325,7 @@ Answer:"""
|
|
| 324 |
margin: 0 auto !important;
|
| 325 |
padding: 1.5rem !important;
|
| 326 |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
|
| 327 |
-
background-color: var(--background-
|
| 328 |
box-shadow: none !important;
|
| 329 |
color: var(--text-primary) !important;
|
| 330 |
}
|
|
@@ -332,14 +333,12 @@ Answer:"""
|
|
| 332 |
background-color: var(--background-primary) !important;
|
| 333 |
}
|
| 334 |
.app-header-wrapper {
|
| 335 |
-
background: var(--background-primary) !important;
|
| 336 |
border: 2px solid var(--border-color) !important;
|
| 337 |
border-radius: 16px !important;
|
| 338 |
padding: 2.5rem 1.5rem !important;
|
| 339 |
margin-bottom: 1.5rem !important;
|
| 340 |
box-shadow: var(--shadow-md) !important;
|
| 341 |
-
position: relative;
|
| 342 |
-
overflow: hidden;
|
| 343 |
text-align: center !important;
|
| 344 |
color: var(--text-primary) !important;
|
| 345 |
}
|
|
@@ -348,8 +347,6 @@ Answer:"""
|
|
| 348 |
margin-bottom: 0.75rem !important;
|
| 349 |
display: block !important;
|
| 350 |
color: var(--primary-color) !important;
|
| 351 |
-
position: relative;
|
| 352 |
-
z-index: 1;
|
| 353 |
animation: float-icon 3s ease-in-out infinite alternate;
|
| 354 |
}
|
| 355 |
@keyframes float-icon {
|
|
@@ -365,11 +362,8 @@ Answer:"""
|
|
| 365 |
margin: 0 0 0.75rem 0 !important;
|
| 366 |
line-height: 1.1 !important;
|
| 367 |
letter-spacing: -0.03em !important;
|
| 368 |
-
position: relative;
|
| 369 |
-
z-index: 1;
|
| 370 |
display: inline-block;
|
| 371 |
max-width: 100%;
|
| 372 |
-
text-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; /* Subtle shadow for better blending */
|
| 373 |
}
|
| 374 |
.app-header-tagline {
|
| 375 |
font-size: 1.25rem !important;
|
|
@@ -378,14 +372,12 @@ Answer:"""
|
|
| 378 |
margin: 0 !important;
|
| 379 |
max-width: 700px;
|
| 380 |
display: inline-block;
|
| 381 |
-
position: relative;
|
| 382 |
-
z-index: 1;
|
| 383 |
-
text-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; /* Subtle shadow for better blending */
|
| 384 |
}
|
| 385 |
.main-dashboard-container {
|
| 386 |
display: flex !important;
|
| 387 |
flex-direction: column !important;
|
| 388 |
gap: 1.25rem !important;
|
|
|
|
| 389 |
}
|
| 390 |
.dashboard-card-section {
|
| 391 |
background-color: var(--background-primary) !important;
|
|
@@ -407,10 +399,10 @@ Answer:"""
|
|
| 407 |
align-items: center !important;
|
| 408 |
width: 100% !important;
|
| 409 |
flex-direction: column !important;
|
| 410 |
-
background-color:
|
| 411 |
}
|
| 412 |
.section-title-gradient-bar {
|
| 413 |
-
background-color: var(--background-primary) !important;
|
| 414 |
padding: 1.25rem 1.75rem !important;
|
| 415 |
border-top-left-radius: 10px !important;
|
| 416 |
border-top-right-radius: 10px !important;
|
|
@@ -432,7 +424,6 @@ Answer:"""
|
|
| 432 |
display: inline-block !important;
|
| 433 |
text-align: center !important;
|
| 434 |
letter-spacing: -0.01em !important;
|
| 435 |
-
text-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; /* Subtle shadow for better blending */
|
| 436 |
}
|
| 437 |
.dashboard-card-content-area {
|
| 438 |
padding: 0 1.75rem 1.75rem 1.75rem !important;
|
|
@@ -530,13 +521,15 @@ Answer:"""
|
|
| 530 |
}
|
| 531 |
.gradio-radio input[type="radio"]:checked + label {
|
| 532 |
background-color: var(--primary-color) !important;
|
| 533 |
-
color: white !important;
|
| 534 |
border-color: var(--primary-hover) !important;
|
| 535 |
box-shadow: var(--shadow-md) !important;
|
| 536 |
transform: translateY(-1px) !important;
|
| 537 |
}
|
| 538 |
-
.gradio-radio input
|
| 539 |
-
|
|
|
|
|
|
|
| 540 |
}
|
| 541 |
.gradio-radio .gr-form {
|
| 542 |
padding: 0 !important;
|
|
@@ -738,7 +731,7 @@ Answer:"""
|
|
| 738 |
display: none !important;
|
| 739 |
}
|
| 740 |
.app-footer-wrapper {
|
| 741 |
-
background: var(--background-primary) !important;
|
| 742 |
border: 2px solid var(--border-color) !important;
|
| 743 |
border-radius: 12px !important;
|
| 744 |
padding: 1.75rem !important;
|
|
|
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
+
|
| 249 |
def gradio_interface(self):
|
| 250 |
def query_interface_wrapper(api_key: str, query: str, state: str) -> str:
|
| 251 |
# Basic client-side validation for immediate feedback (redundant but good UX)
|
|
|
|
| 303 |
--primary-hover: #E07B00;
|
| 304 |
--background-primary: hsl(30, 100%, 99.9%);
|
| 305 |
--background-secondary: hsl(30, 100%, 96%);
|
| 306 |
+
--text-primary: #3A2F28; /* Darkened slightly for better contrast */
|
| 307 |
--text-secondary: #8C7B6F;
|
| 308 |
--border-color: hsl(30, 70%, 85%);
|
| 309 |
--border-focus: #FF8C00;
|
|
|
|
| 316 |
}
|
| 317 |
|
| 318 |
body, html {
|
| 319 |
+
background-color: var(--background-primary) !important;
|
| 320 |
color: var(--text-primary) !important;
|
| 321 |
transition: none !important;
|
| 322 |
}
|
|
|
|
| 325 |
margin: 0 auto !important;
|
| 326 |
padding: 1.5rem !important;
|
| 327 |
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
|
| 328 |
+
background-color: var(--background-primary) !important;
|
| 329 |
box-shadow: none !important;
|
| 330 |
color: var(--text-primary) !important;
|
| 331 |
}
|
|
|
|
| 333 |
background-color: var(--background-primary) !important;
|
| 334 |
}
|
| 335 |
.app-header-wrapper {
|
| 336 |
+
background-color: var(--background-primary) !important;
|
| 337 |
border: 2px solid var(--border-color) !important;
|
| 338 |
border-radius: 16px !important;
|
| 339 |
padding: 2.5rem 1.5rem !important;
|
| 340 |
margin-bottom: 1.5rem !important;
|
| 341 |
box-shadow: var(--shadow-md) !important;
|
|
|
|
|
|
|
| 342 |
text-align: center !important;
|
| 343 |
color: var(--text-primary) !important;
|
| 344 |
}
|
|
|
|
| 347 |
margin-bottom: 0.75rem !important;
|
| 348 |
display: block !important;
|
| 349 |
color: var(--primary-color) !important;
|
|
|
|
|
|
|
| 350 |
animation: float-icon 3s ease-in-out infinite alternate;
|
| 351 |
}
|
| 352 |
@keyframes float-icon {
|
|
|
|
| 362 |
margin: 0 0 0.75rem 0 !important;
|
| 363 |
line-height: 1.1 !important;
|
| 364 |
letter-spacing: -0.03em !important;
|
|
|
|
|
|
|
| 365 |
display: inline-block;
|
| 366 |
max-width: 100%;
|
|
|
|
| 367 |
}
|
| 368 |
.app-header-tagline {
|
| 369 |
font-size: 1.25rem !important;
|
|
|
|
| 372 |
margin: 0 !important;
|
| 373 |
max-width: 700px;
|
| 374 |
display: inline-block;
|
|
|
|
|
|
|
|
|
|
| 375 |
}
|
| 376 |
.main-dashboard-container {
|
| 377 |
display: flex !important;
|
| 378 |
flex-direction: column !important;
|
| 379 |
gap: 1.25rem !important;
|
| 380 |
+
background-color: var(--background-primary) !important;
|
| 381 |
}
|
| 382 |
.dashboard-card-section {
|
| 383 |
background-color: var(--background-primary) !important;
|
|
|
|
| 399 |
align-items: center !important;
|
| 400 |
width: 100% !important;
|
| 401 |
flex-direction: column !important;
|
| 402 |
+
background-color: var(--background-primary) !important;
|
| 403 |
}
|
| 404 |
.section-title-gradient-bar {
|
| 405 |
+
background-color: var(--background-primary) !important;
|
| 406 |
padding: 1.25rem 1.75rem !important;
|
| 407 |
border-top-left-radius: 10px !important;
|
| 408 |
border-top-right-radius: 10px !important;
|
|
|
|
| 424 |
display: inline-block !important;
|
| 425 |
text-align: center !important;
|
| 426 |
letter-spacing: -0.01em !important;
|
|
|
|
| 427 |
}
|
| 428 |
.dashboard-card-content-area {
|
| 429 |
padding: 0 1.75rem 1.75rem 1.75rem !important;
|
|
|
|
| 521 |
}
|
| 522 |
.gradio-radio input[type="radio"]:checked + label {
|
| 523 |
background-color: var(--primary-color) !important;
|
| 524 |
+
color: white !important;
|
| 525 |
border-color: var(--primary-hover) !important;
|
| 526 |
box-shadow: var(--shadow-md) !important;
|
| 527 |
transform: translateY(-1px) !important;
|
| 528 |
}
|
| 529 |
+
.gradio-radio input
|
| 530 |
+
|
| 531 |
+
[type="radio"]:checked + label span.text-lg {
|
| 532 |
+
color: white !important;
|
| 533 |
}
|
| 534 |
.gradio-radio .gr-form {
|
| 535 |
padding: 0 !important;
|
|
|
|
| 731 |
display: none !important;
|
| 732 |
}
|
| 733 |
.app-footer-wrapper {
|
| 734 |
+
background-color: var(--background-primary) !important;
|
| 735 |
border: 2px solid var(--border-color) !important;
|
| 736 |
border-radius: 12px !important;
|
| 737 |
padding: 1.75rem !important;
|