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