Spaces:
Build error
Build error
sdhanabal1
commited on
Commit
•
5adb324
1
Parent(s):
c1514e5
Test html rendering error
Browse files
app.py
CHANGED
@@ -50,7 +50,9 @@ def main() -> None:
|
|
50 |
for sentence in summary_sentences:
|
51 |
sentence = html.escape(sentence)
|
52 |
replaced_text = replaced_text.replace(sentence,
|
53 |
-
f"<
|
|
|
|
|
54 |
replaced_text = replaced_text.replace('\n', '<br/>')
|
55 |
with st.container():
|
56 |
st.markdown(replaced_text, unsafe_allow_html=True)
|
|
|
50 |
for sentence in summary_sentences:
|
51 |
sentence = html.escape(sentence)
|
52 |
replaced_text = replaced_text.replace(sentence,
|
53 |
+
f"<div>"
|
54 |
+
f"<span style='background-color: #FFFF00'>{sentence}</span>"
|
55 |
+
f"</div>")
|
56 |
replaced_text = replaced_text.replace('\n', '<br/>')
|
57 |
with st.container():
|
58 |
st.markdown(replaced_text, unsafe_allow_html=True)
|