annikwag commited on
Commit
a4b2586
·
verified ·
1 Parent(s): d8bc0a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -202,19 +202,17 @@ with col5_2:
202
  ###########################################
203
  # Filter Controls - Row 3 (Remaining Filter)
204
  ###########################################
205
- col1_3, col2_3, col3_3 = st.columns([1, 0.5, 3.5])
206
- with col1_3:
207
- # Place the "Show only exact matches" checkbox here
208
  show_exact_matches = st.checkbox("Show only exact matches", key="show_exact_matches")
209
- with col2_3:
210
- # Right-align a more prominent reset button
211
  with st.container():
212
  st.markdown("<div style='text-align: right;'>", unsafe_allow_html=True)
213
  if st.button("**Reset Filters**", key="reset_button_row3"):
214
  reset_filters()
215
  st.markdown("</div>", unsafe_allow_html=True)
216
- with col3_3:
217
- st.empty()
218
 
219
 
220
  ###########################################
@@ -434,7 +432,7 @@ else:
434
  for line in rag_answer.splitlines():
435
  if line.strip():
436
  line_bold = re.sub(r'(\d+)', r'<b>\1</b>', line)
437
- bullet_lines.append(f"<li><b>{line_bold}</b></li>")
438
  formatted_rag_answer = (
439
  "<div style='background-color: #f0f0f0; padding: 10px;'>"
440
  "<ul style='text-align: left; list-style-position: inside;'>"
 
202
  ###########################################
203
  # Filter Controls - Row 3 (Remaining Filter)
204
  ###########################################
205
+ col_left, col_right = st.columns([9, 1])
206
+ with col_left:
207
+ # Place the "Show only exact matches" checkbox here (or any other widgets)
208
  show_exact_matches = st.checkbox("Show only exact matches", key="show_exact_matches")
209
+ with col_right:
210
+ # The reset button will now be in a narrow column on the far right.
211
  with st.container():
212
  st.markdown("<div style='text-align: right;'>", unsafe_allow_html=True)
213
  if st.button("**Reset Filters**", key="reset_button_row3"):
214
  reset_filters()
215
  st.markdown("</div>", unsafe_allow_html=True)
 
 
216
 
217
 
218
  ###########################################
 
432
  for line in rag_answer.splitlines():
433
  if line.strip():
434
  line_bold = re.sub(r'(\d+)', r'<b>\1</b>', line)
435
+ bullet_lines.append(f"<li>{line_bold}</li>")
436
  formatted_rag_answer = (
437
  "<div style='background-color: #f0f0f0; padding: 10px;'>"
438
  "<ul style='text-align: left; list-style-position: inside;'>"