Nischal Subedi commited on
Commit
e66972a
·
1 Parent(s): 82b0565

UI update:

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -149,7 +149,7 @@ Answer:"""
149
 
150
  if context_parts:
151
  context = "\n\n---\n\n".join(context_parts)
152
- logging.info(f"Constructed context with {len(context_parts)} parts. Length: {len(context)} chars.")
153
  try:
154
  statutes_from_context = self.extract_statutes(context)
155
  except Exception as e:
@@ -285,7 +285,7 @@ Answer:"""
285
  ["Can a landlord enter my apartment without notice?", "New York"],
286
  ["My landlord hasn't made necessary repairs. What can I do?", "Texas"],
287
  ["How much notice must a landlord give to raise rent?", "Florida"],
288
- ["What is an implied warranty of habitability?", "Illinois"]
289
  ]
290
  example_queries = []
291
  if available_states_list and "Error" not in available_states_list[0] and len(available_states_list) > 0:
@@ -518,6 +518,7 @@ Answer:"""
518
 
519
  /* Improved input styling with clear boundaries and focus */
520
  .gradio-textbox {
 
521
  margin-bottom: 0.75rem !important;
522
  }
523
  /* Target the actual input elements for background color */
@@ -547,6 +548,7 @@ Answer:"""
547
 
548
  /* Styling for the radio button group (state selection) */
549
  .gradio-radio {
 
550
  padding: 0 !important; /* Remove any default padding */
551
  margin-top: 1rem !important; /* Add a little space above */
552
  }
 
149
 
150
  if context_parts:
151
  context = "\n\n---\n\n".join(context_parts)
152
+ logging.info(f"Constructed context with {len(context)} chars.")
153
  try:
154
  statutes_from_context = self.extract_statutes(context)
155
  except Exception as e:
 
285
  ["Can a landlord enter my apartment without notice?", "New York"],
286
  ["My landlord hasn't made necessary repairs. What can I do?", "Texas"],
287
  ["How much notice must a landlord give to raise rent?", "Florida"],
288
+ ["What is an and implied warranty of habitability?", "Illinois"]
289
  ]
290
  example_queries = []
291
  if available_states_list and "Error" not in available_states_list[0] and len(available_states_list) > 0:
 
518
 
519
  /* Improved input styling with clear boundaries and focus */
520
  .gradio-textbox {
521
+ background-color: transparent !important; /* Ensure parent container is transparent */
522
  margin-bottom: 0.75rem !important;
523
  }
524
  /* Target the actual input elements for background color */
 
548
 
549
  /* Styling for the radio button group (state selection) */
550
  .gradio-radio {
551
+ background-color: transparent !important; /* Ensure parent container is transparent */
552
  padding: 0 !important; /* Remove any default padding */
553
  margin-top: 1rem !important; /* Add a little space above */
554
  }