Shubham170793 commited on
Commit
f4b1ade
Β·
verified Β·
1 Parent(s): 13aedcc

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -235,7 +235,7 @@ else:
235
 
236
  # βœ… Apply bullet formatting only for strict factual mode (not reasoning)
237
  if not reasoning_mode and not answer.startswith("⚠️"):
238
- answer = answer.replace("\n-", "<br>β€’")
239
  st.markdown(f"<div class='answer-box'>{answer}</div>", unsafe_allow_html=True)
240
 
241
  with st.expander("πŸ“˜ Supporting Context"):
 
235
 
236
  # βœ… Apply bullet formatting only for strict factual mode (not reasoning)
237
  if not reasoning_mode and not answer.startswith("⚠️"):
238
+ answer = re.sub(r"(^|\n)-\s*", r"\1<br>β€’ ", answer)
239
  st.markdown(f"<div class='answer-box'>{answer}</div>", unsafe_allow_html=True)
240
 
241
  with st.expander("πŸ“˜ Supporting Context"):