Nischal Subedi commited on
Commit
9300bef
·
1 Parent(s): c9c872c
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -83,7 +83,7 @@ Answer:"""
83
  seen = set()
84
  unique_statutes = [s for s in valid_statutes if not (s.rstrip('.,;') in seen or seen.add(s.rstrip('.,;')))]
85
  logging.info(f"Extracted {len(unique_statutes)} unique statutes.")
86
- return "\n".join(f"- {s}" for s in unique_statutes)
87
 
88
  logging.info("No statutes found matching the pattern in the context.")
89
  return "No specific statutes found in the provided context."
@@ -315,7 +315,7 @@ Answer:"""
315
  overflow: hidden;
316
  z-index: 10;
317
  margin-bottom: 2rem; /* Reduced margin */
318
- border: 2px solid var(--border-color-primary) !important; /* Thicker border */
319
  border-top: none;
320
  max-width: 1120px;
321
  margin-left: auto;
@@ -350,7 +350,7 @@ Answer:"""
350
  /* Main dashboard container */
351
  .main-dashboard-container {
352
  border-radius: 24px;
353
- border: 2px solid var(--border-color-primary) !important; /* Thicker border */
354
  padding: 3.5rem !important;
355
  margin: 0 auto 0.6rem auto; /* Reduced margin-bottom */
356
  z-index: 1; position: relative;
@@ -360,7 +360,7 @@ Answer:"""
360
  /* Card sections within the dashboard */
361
  .dashboard-card-section {
362
  border-radius: 12px;
363
- border: 2px solid var(--border-color-primary); /* Thicker border */
364
  padding: 2.5rem;
365
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
366
  display: flex; flex-direction: column; gap: 1.5rem;
@@ -455,7 +455,7 @@ Answer:"""
455
  /* Examples table styling */
456
  .examples-section table.gr-samples-table {
457
  border-radius: 12px !important;
458
- border: 2px solid var(--border-color-primary) !important; /* Thicker border */
459
  overflow: hidden;
460
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
461
  }
@@ -475,7 +475,7 @@ Answer:"""
475
  .examples-section table.gr-samples-table tr:first-child td { border-top: none !important; }
476
  /* Footer styling */
477
  .app-footer-wrapper {
478
- border-top: 2px solid var(--border-color-primary) !important; /* Thicker border */
479
  margin-top: 0.5rem;
480
  padding-top: 2.5rem;
481
  padding-bottom: 2.5rem;
@@ -501,6 +501,7 @@ Answer:"""
501
  font-size: 1.05rem !important;
502
  text-align: left !important;
503
  margin-bottom: 1rem;
 
504
  }
505
  .app-footer a { font-weight: 500; }
506
  /* Hide default Gradio example labels and related elements for cleaner presentation */
@@ -532,6 +533,7 @@ Answer:"""
532
  .examples-section table.gr-samples-table th, .examples-section table.gr-samples-table td { padding: 0.9rem 1.1rem !important; }
533
  .app-footer-wrapper { margin-top: 0.6rem; border-top-left-radius: 12px; border-top-right-radius: 12px; }
534
  .app-footer { padding: 0 1.5rem !important; }
 
535
  }
536
  @media (max-width: 768px) {
537
  .gradio-container > .flex.flex-col { padding: 0 1rem !important; }
@@ -550,6 +552,7 @@ Answer:"""
550
  .examples-section table.gr-samples-table th, .examples-section table.gr-samples-table td { padding: 0.9rem 1.1rem !important; font-size: 1.0rem !important; }
551
  .app-footer-wrapper { margin-top: 0.6rem; border-top-left-radius: 12px; border-top-right-radius: 12px; padding-top: 2rem; padding-bottom: 2rem; }
552
  .app-footer { padding: 0 1rem !important; }
 
553
  }
554
  @media (max-width: 480px) {
555
  .gradio-container > .flex.flex-col { padding: 0 0.8rem !important; }
@@ -568,6 +571,7 @@ Answer:"""
568
  .examples-section table.gr-samples-table th, .examples-section table.gr-samples-table td { padding: 0.6rem 0.8rem !important; font-size: 0.95rem !important; }
569
  .app-footer-wrapper { margin-top: 0.4rem; border-top-left-radius: 8px; border-top-right-radius: 8px; padding-top: 1.5rem; padding-bottom: 1.5rem; }
570
  .app-footer { padding: 0 0.8rem !important; }
 
571
  }
572
  """
573
 
 
83
  seen = set()
84
  unique_statutes = [s for s in valid_statutes if not (s.rstrip('.,;') in seen or seen.add(s.rstrip('.,;')))]
85
  logging.info(f"Extracted {len(unique_statutes)} unique statutes.")
86
+ return "\n".join(f"- {s}" for unique_statutes)
87
 
88
  logging.info("No statutes found matching the pattern in the context.")
89
  return "No specific statutes found in the provided context."
 
315
  overflow: hidden;
316
  z-index: 10;
317
  margin-bottom: 2rem; /* Reduced margin */
318
+ border: 3px solid var(--border-color-primary) !important; /* Thicker border */
319
  border-top: none;
320
  max-width: 1120px;
321
  margin-left: auto;
 
350
  /* Main dashboard container */
351
  .main-dashboard-container {
352
  border-radius: 24px;
353
+ border: 3px solid var(--border-color-primary) !important; /* Thicker border */
354
  padding: 3.5rem !important;
355
  margin: 0 auto 0.6rem auto; /* Reduced margin-bottom */
356
  z-index: 1; position: relative;
 
360
  /* Card sections within the dashboard */
361
  .dashboard-card-section {
362
  border-radius: 12px;
363
+ border: 3px solid var(--border-color-primary); /* Thicker border */
364
  padding: 2.5rem;
365
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
366
  display: flex; flex-direction: column; gap: 1.5rem;
 
455
  /* Examples table styling */
456
  .examples-section table.gr-samples-table {
457
  border-radius: 12px !important;
458
+ border: 3px solid var(--border-color-primary) !important; /* Thicker border */
459
  overflow: hidden;
460
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
461
  }
 
475
  .examples-section table.gr-samples-table tr:first-child td { border-top: none !important; }
476
  /* Footer styling */
477
  .app-footer-wrapper {
478
+ border-top: 3px solid var(--border-color-primary) !important; /* Thicker border */
479
  margin-top: 0.5rem;
480
  padding-top: 2.5rem;
481
  padding-bottom: 2.5rem;
 
501
  font-size: 1.05rem !important;
502
  text-align: left !important;
503
  margin-bottom: 1rem;
504
+ padding-left: 2rem; /* Added indent */
505
  }
506
  .app-footer a { font-weight: 500; }
507
  /* Hide default Gradio example labels and related elements for cleaner presentation */
 
533
  .examples-section table.gr-samples-table th, .examples-section table.gr-samples-table td { padding: 0.9rem 1.1rem !important; }
534
  .app-footer-wrapper { margin-top: 0.6rem; border-top-left-radius: 12px; border-top-right-radius: 12px; }
535
  .app-footer { padding: 0 1.5rem !important; }
536
+ .app-footer p { padding-left: 1.5rem; } /* Adjusted indent for smaller screens */
537
  }
538
  @media (max-width: 768px) {
539
  .gradio-container > .flex.flex-col { padding: 0 1rem !important; }
 
552
  .examples-section table.gr-samples-table th, .examples-section table.gr-samples-table td { padding: 0.9rem 1.1rem !important; font-size: 1.0rem !important; }
553
  .app-footer-wrapper { margin-top: 0.6rem; border-top-left-radius: 12px; border-top-right-radius: 12px; padding-top: 2rem; padding-bottom: 2rem; }
554
  .app-footer { padding: 0 1rem !important; }
555
+ .app-footer p { padding-left: 1rem; } /* Adjusted indent for smaller screens */
556
  }
557
  @media (max-width: 480px) {
558
  .gradio-container > .flex.flex-col { padding: 0 0.8rem !important; }
 
571
  .examples-section table.gr-samples-table th, .examples-section table.gr-samples-table td { padding: 0.6rem 0.8rem !important; font-size: 0.95rem !important; }
572
  .app-footer-wrapper { margin-top: 0.4rem; border-top-left-radius: 8px; border-top-right-radius: 8px; padding-top: 1.5rem; padding-bottom: 1.5rem; }
573
  .app-footer { padding: 0 0.8rem !important; }
574
+ .app-footer p { padding-left: 0.5rem; } /* Adjusted indent for smallest screens */
575
  }
576
  """
577