Shubham170793 commited on
Commit
2f4f645
·
verified ·
1 Parent(s): 68c8d89

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -0
src/streamlit_app.py CHANGED
@@ -241,6 +241,8 @@ else:
241
 
242
  # ✅ Apply bullet formatting only for strict factual mode (not reasoning)
243
  if not reasoning_mode and not answer.startswith("⚠️"):
 
 
244
  answer = re.sub(r"(^|\n)-\s*", r"\1<br>• ", answer)
245
  st.markdown(f"<div class='answer-box'>{answer}</div>", unsafe_allow_html=True)
246
 
 
241
 
242
  # ✅ Apply bullet formatting only for strict factual mode (not reasoning)
243
  if not reasoning_mode and not answer.startswith("⚠️"):
244
+ # Remove Markdown bold markers (**text**) and convert hyphen bullets
245
+ answer = re.sub(r"\*\*(.*?)\*\*", r"\1", answer) # strip **bold**
246
  answer = re.sub(r"(^|\n)-\s*", r"\1<br>• ", answer)
247
  st.markdown(f"<div class='answer-box'>{answer}</div>", unsafe_allow_html=True)
248