Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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:
|