Nischal Subedi
commited on
Commit
·
9ed8c63
1
Parent(s):
b54dd5b
optimized for hf
Browse files
app.py
CHANGED
|
@@ -385,6 +385,11 @@ Answer:"""
|
|
| 385 |
margin-bottom: 2.5rem; /* Space between header and main console */
|
| 386 |
border: 1px solid var(--border-dark); /* Subtle frame */
|
| 387 |
border-top: none; /* No top border for flush with screen top */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 388 |
}
|
| 389 |
@media (prefers-color-scheme: light) {
|
| 390 |
.app-header-wrapper {
|
|
@@ -458,6 +463,8 @@ Answer:"""
|
|
| 458 |
display: flex;
|
| 459 |
flex-direction: column;
|
| 460 |
gap: 2.5rem; /* Space between the main "cards" inside the console */
|
|
|
|
|
|
|
| 461 |
}
|
| 462 |
@media (prefers-color-scheme: light) {
|
| 463 |
.main-dashboard-container {
|
|
@@ -903,6 +910,11 @@ Answer:"""
|
|
| 903 |
border-top-right-radius: var(--radius-lg);
|
| 904 |
box-shadow: inset 0 8px 15px rgba(0,0,0,0.2); /* Inset shadow for depth */
|
| 905 |
transition: background var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 906 |
}
|
| 907 |
@media (prefers-color-scheme: light) {
|
| 908 |
.app-footer-wrapper {
|
|
@@ -1033,8 +1045,8 @@ Answer:"""
|
|
| 1033 |
.output-card .response-header { font-size: 1.5rem; }
|
| 1034 |
.output-card .response-icon { font-size: 1.7rem; }
|
| 1035 |
.output-card .placeholder { padding: 2.5rem 1.5rem; font-size: 1.1rem; }
|
| 1036 |
-
.examples-section { padding-top:
|
| 1037 |
-
.examples-section .gr-examples-table th, .examples-section .gr-examples-table td { padding: 0.
|
| 1038 |
.app-footer-wrapper { margin-top: 0.5rem; padding-top: 2rem; padding-bottom: 2rem; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
|
| 1039 |
}
|
| 1040 |
|
|
@@ -1055,7 +1067,7 @@ Answer:"""
|
|
| 1055 |
.output-card .response-header { font-size: 1.4rem; }
|
| 1056 |
.output-card .response-icon { font-size: 1.5rem; }
|
| 1057 |
.output-card .placeholder { padding: 2rem 1rem; font-size: 1.05rem; }
|
| 1058 |
-
.examples-section { padding-top: 0.8rem; }
|
| 1059 |
.examples-section .gr-examples-table th, .examples-section .gr-examples-table td { padding: 0.6rem 0.8rem !important; font-size: 0.95rem !important; }
|
| 1060 |
.app-footer-wrapper { margin-top: 0.4rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); }
|
| 1061 |
}
|
|
@@ -1101,7 +1113,7 @@ Answer:"""
|
|
| 1101 |
with gr.Row(elem_classes="input-row"): # Query and State in one row
|
| 1102 |
with gr.Column(elem_classes="input-field", scale=3): # Query box takes more space
|
| 1103 |
query_input = gr.Textbox(
|
| 1104 |
-
label="
|
| 1105 |
lines=5, max_lines=10
|
| 1106 |
)
|
| 1107 |
with gr.Column(elem_classes="input-field", scale=1): # State dropdown takes less space
|
|
|
|
| 385 |
margin-bottom: 2.5rem; /* Space between header and main console */
|
| 386 |
border: 1px solid var(--border-dark); /* Subtle frame */
|
| 387 |
border-top: none; /* No top border for flush with screen top */
|
| 388 |
+
/* ADDED FOR ROBUST CENTERING */
|
| 389 |
+
max-width: 1120px; /* Match the main content width */
|
| 390 |
+
margin-left: auto;
|
| 391 |
+
margin-right: auto;
|
| 392 |
+
width: 100%; /* Ensure it fills parent width up to max-width */
|
| 393 |
}
|
| 394 |
@media (prefers-color-scheme: light) {
|
| 395 |
.app-header-wrapper {
|
|
|
|
| 463 |
display: flex;
|
| 464 |
flex-direction: column;
|
| 465 |
gap: 2.5rem; /* Space between the main "cards" inside the console */
|
| 466 |
+
/* ADDED FOR ROBUST WIDTH CONSTRAINT */
|
| 467 |
+
max-width: 1120px; /* Ensure it matches the header and footer width */
|
| 468 |
}
|
| 469 |
@media (prefers-color-scheme: light) {
|
| 470 |
.main-dashboard-container {
|
|
|
|
| 910 |
border-top-right-radius: var(--radius-lg);
|
| 911 |
box-shadow: inset 0 8px 15px rgba(0,0,0,0.2); /* Inset shadow for depth */
|
| 912 |
transition: background var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
|
| 913 |
+
/* ADDED FOR ROBUST CENTERING */
|
| 914 |
+
max-width: 1120px; /* Ensure it matches the main content width */
|
| 915 |
+
margin-left: auto;
|
| 916 |
+
margin-right: auto;
|
| 917 |
+
width: 100%; /* Ensure it fills parent width up to max-width */
|
| 918 |
}
|
| 919 |
@media (prefers-color-scheme: light) {
|
| 920 |
.app-footer-wrapper {
|
|
|
|
| 1045 |
.output-card .response-header { font-size: 1.5rem; }
|
| 1046 |
.output-card .response-icon { font-size: 1.7rem; }
|
| 1047 |
.output-card .placeholder { padding: 2.5rem 1.5rem; font-size: 1.1rem; }
|
| 1048 |
+
.examples-section { padding-top: 1.2rem; } /* Restore to 1.2rem from 1rem */
|
| 1049 |
+
.examples-section .gr-examples-table th, .examples-section .gr-examples-table td { padding: 0.9rem 1.1rem !important; font-size: 1.0rem !important; } /* Restore to 0.9rem/1.1rem */
|
| 1050 |
.app-footer-wrapper { margin-top: 0.5rem; padding-top: 2rem; padding-bottom: 2rem; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
|
| 1051 |
}
|
| 1052 |
|
|
|
|
| 1067 |
.output-card .response-header { font-size: 1.4rem; }
|
| 1068 |
.output-card .response-icon { font-size: 1.5rem; }
|
| 1069 |
.output-card .placeholder { padding: 2rem 1rem; font-size: 1.05rem; }
|
| 1070 |
+
.examples-section { padding-top: 0.8rem; }
|
| 1071 |
.examples-section .gr-examples-table th, .examples-section .gr-examples-table td { padding: 0.6rem 0.8rem !important; font-size: 0.95rem !important; }
|
| 1072 |
.app-footer-wrapper { margin-top: 0.4rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); }
|
| 1073 |
}
|
|
|
|
| 1113 |
with gr.Row(elem_classes="input-row"): # Query and State in one row
|
| 1114 |
with gr.Column(elem_classes="input-field", scale=3): # Query box takes more space
|
| 1115 |
query_input = gr.Textbox(
|
| 1116 |
+
label="Question", placeholder="E.g., What are the rules for security deposit returns in my state?",
|
| 1117 |
lines=5, max_lines=10
|
| 1118 |
)
|
| 1119 |
with gr.Column(elem_classes="input-field", scale=1): # State dropdown takes less space
|