arubaDev commited on
Commit
d5966ab
·
verified ·
1 Parent(s): fd12ee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -5
app.py CHANGED
@@ -248,8 +248,8 @@ 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
- <style>
252
- /* Make all side-panel section headings smaller and tighter */
253
  .compact-heading h3 {
254
  font-size: 0.9rem !important;
255
  font-weight: 600 !important;
@@ -257,25 +257,50 @@ with gr.Blocks(title="Backend-Focused LLaMA/Mistral CRUD Assistant", theme=gr.th
257
  padding: 0 !important;
258
  }
259
 
260
- /* General markdown at top title smaller */
261
  .main-title h2 {
262
  font-size: 1.2rem !important;
263
  font-weight: 700 !important;
264
  margin-bottom: 0.6rem !important;
265
  }
266
 
267
- /* Reduce spacing below sliders and dropdowns */
268
  .compact-sliders .gr-slider,
269
  .compact-sliders .gr-number,
270
  .compact-sliders .gr-dropdown {
271
  margin-bottom: 0.4rem !important;
272
  }
273
 
274
- /* Compact the overall column */
275
  .left-panel .gr-column {
276
  gap: 0.3rem !important;
277
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  </style>
 
279
  """)
280
  # gr.Markdown("## 🗄️ LLaMA & Mistral Backend-Focused CRUD Automation — Persistent History")
281
 
 
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;
255
  font-weight: 600 !important;
 
257
  padding: 0 !important;
258
  }
259
 
260
+ /* ========== Main top title smaller ========== */
261
  .main-title h2 {
262
  font-size: 1.2rem !important;
263
  font-weight: 700 !important;
264
  margin-bottom: 0.6rem !important;
265
  }
266
 
267
+ /* ========== Reduce spacing below sliders & dropdowns ========== */
268
  .compact-sliders .gr-slider,
269
  .compact-sliders .gr-number,
270
  .compact-sliders .gr-dropdown {
271
  margin-bottom: 0.4rem !important;
272
  }
273
 
274
+ /* ========== Compact the left panel column ========== */
275
  .left-panel .gr-column {
276
  gap: 0.3rem !important;
277
  }
278
+
279
+ /* ========== Tiny / pressed buttons ========== */
280
+ .tiny-btn .gr-button {
281
+ font-size: 0.75rem !important; /* smaller text */
282
+ padding: 2px 6px !important; /* tight padding */
283
+ min-height: 24px !important; /* shorter button */
284
+ line-height: 1.1 !important; /* compact vertical spacing */
285
+ border-radius: 4px !important; /* slightly rounded */
286
+ }
287
+
288
+ /* ========== Remove extra top/left page gaps ========== */
289
+ body, html {
290
+ margin: 0 !important;
291
+ padding: 0 !important;
292
+ }
293
+
294
+ .gradio-container {
295
+ padding-top: 0.3rem !important; /* reduce top space */
296
+ padding-left: 0.3rem !important; /* reduce left space */
297
+ }
298
+
299
+ .main-title {
300
+ margin-top: 0 !important; /* tighten top title spacing */
301
+ }
302
  </style>
303
+
304
  """)
305
  # gr.Markdown("## 🗄️ LLaMA & Mistral Backend-Focused CRUD Automation — Persistent History")
306