Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -248,7 +248,7 @@ default_selected = labels[0] if labels else None
|
|
| 248 |
with gr.Blocks(title="Backend-Focused LLaMA/Mistral CRUD Assistant", theme=gr.themes.Soft()) as demo:
|
| 249 |
# --- Custom CSS ---
|
| 250 |
gr.HTML("""
|
| 251 |
-
|
| 252 |
/* ========== Compact section headings ========== */
|
| 253 |
.compact-heading h3 {
|
| 254 |
font-size: 0.9rem !important;
|
|
@@ -291,31 +291,36 @@ with gr.Blocks(title="Backend-Focused LLaMA/Mistral CRUD Assistant", theme=gr.th
|
|
| 291 |
padding: 0 !important;
|
| 292 |
}
|
| 293 |
|
|
|
|
| 294 |
.gradio-container {
|
| 295 |
-
|
| 296 |
-
padding-
|
|
|
|
| 297 |
}
|
| 298 |
|
| 299 |
-
|
| 300 |
-
|
|
|
|
|
|
|
|
|
|
| 301 |
}
|
| 302 |
-
|
| 303 |
-
/* Compact sliders: reduce vertical height and spacing */
|
| 304 |
.compact-sliders .gr-slider {
|
| 305 |
-
height: 28px !important;
|
| 306 |
-
padding: 0 !important;
|
| 307 |
-
margin-bottom: 0.3rem !important;
|
| 308 |
}
|
| 309 |
|
| 310 |
/* Compact slider label and value text */
|
| 311 |
.compact-sliders .gr-slider label,
|
| 312 |
.compact-sliders .gr-slider span {
|
| 313 |
-
font-size: 0.8rem !important;
|
| 314 |
}
|
| 315 |
|
| 316 |
-
/*
|
| 317 |
.compact-sliders input[type="number"] {
|
| 318 |
-
max-width: 70px !important;
|
| 319 |
font-size: 0.8rem !important;
|
| 320 |
padding: 2px 4px !important;
|
| 321 |
}
|
|
|
|
| 248 |
with gr.Blocks(title="Backend-Focused LLaMA/Mistral CRUD Assistant", theme=gr.themes.Soft()) as demo:
|
| 249 |
# --- Custom CSS ---
|
| 250 |
gr.HTML("""
|
| 251 |
+
<style>
|
| 252 |
/* ========== Compact section headings ========== */
|
| 253 |
.compact-heading h3 {
|
| 254 |
font-size: 0.9rem !important;
|
|
|
|
| 291 |
padding: 0 !important;
|
| 292 |
}
|
| 293 |
|
| 294 |
+
/* Pull the whole container closer to the top/left */
|
| 295 |
.gradio-container {
|
| 296 |
+
margin-top: -10px !important; /* use negative to remove gap */
|
| 297 |
+
padding-top: 0 !important;
|
| 298 |
+
padding-left: 0.3rem !important; /* keep slight left padding */
|
| 299 |
}
|
| 300 |
|
| 301 |
+
/* Ensure first block/title doesn’t add gap */
|
| 302 |
+
.main-title,
|
| 303 |
+
.gr-block:first-of-type {
|
| 304 |
+
margin-top: -5px !important; /* adjust as needed */
|
| 305 |
+
padding-top: 0 !important;
|
| 306 |
}
|
| 307 |
+
|
| 308 |
+
/* ========== Compact sliders: reduce vertical height and spacing ========== */
|
| 309 |
.compact-sliders .gr-slider {
|
| 310 |
+
height: 28px !important; /* shorter track */
|
| 311 |
+
padding: 0 !important; /* remove inner padding */
|
| 312 |
+
margin-bottom: 0.3rem !important; /* less spacing below each slider */
|
| 313 |
}
|
| 314 |
|
| 315 |
/* Compact slider label and value text */
|
| 316 |
.compact-sliders .gr-slider label,
|
| 317 |
.compact-sliders .gr-slider span {
|
| 318 |
+
font-size: 0.8rem !important; /* smaller text */
|
| 319 |
}
|
| 320 |
|
| 321 |
+
/* Tighten the numeric input box on sliders */
|
| 322 |
.compact-sliders input[type="number"] {
|
| 323 |
+
max-width: 70px !important; /* smaller numeric input width */
|
| 324 |
font-size: 0.8rem !important;
|
| 325 |
padding: 2px 4px !important;
|
| 326 |
}
|