Shabdobhedi commited on
Commit
c700954
·
verified ·
1 Parent(s): 3e33879

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -32,8 +32,10 @@ if uploaded_file is not None:
32
 
33
  # Highlight the keyword in the extracted text
34
  if keyword:
 
 
35
  highlighted_text = full_text.replace(
36
- keyword, f"<mark style='background-color: yellow; color: black;'>{keyword}</mark>")
37
  st.subheader("Highlighted Search Results")
38
  st.markdown(highlighted_text, unsafe_allow_html=True)
39
  else:
 
32
 
33
  # Highlight the keyword in the extracted text
34
  if keyword:
35
+ #highlighted_text = full_text.replace(
36
+ #keyword, f"<mark style='background-color: yellow; color: black;'>{keyword}</mark>")
37
  highlighted_text = full_text.replace(
38
+ keyword, f"<mark>{keyword}</mark>")
39
  st.subheader("Highlighted Search Results")
40
  st.markdown(highlighted_text, unsafe_allow_html=True)
41
  else: