Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -226,15 +226,15 @@ if (summ_text is not None) or ('summ_text' in st.session_state):
|
|
| 226 |
|
| 227 |
# Inject CSS into the Streamlit app
|
| 228 |
st.markdown(frame_css, unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
| 229 |
|
| 230 |
# Render the markdown content within the framed box
|
| 231 |
st.markdown(
|
| 232 |
-
f'<div class="framed-markdown">{st.session_state.current_text}</div>',
|
| 233 |
unsafe_allow_html=True
|
| 234 |
)
|
| 235 |
-
|
| 236 |
-
def render_markdown_to_html(markdown_str):
|
| 237 |
-
return markdown.markdown(markdown_str)
|
| 238 |
|
| 239 |
def generate_pdf(html_string):
|
| 240 |
css = """
|
|
|
|
| 226 |
|
| 227 |
# Inject CSS into the Streamlit app
|
| 228 |
st.markdown(frame_css, unsafe_allow_html=True)
|
| 229 |
+
|
| 230 |
+
def render_markdown_to_html(markdown_str):
|
| 231 |
+
return markdown.markdown(markdown_str)
|
| 232 |
|
| 233 |
# Render the markdown content within the framed box
|
| 234 |
st.markdown(
|
| 235 |
+
f'<div class="framed-markdown">{render_markdown_to_html(st.session_state.current_text)}</div>',
|
| 236 |
unsafe_allow_html=True
|
| 237 |
)
|
|
|
|
|
|
|
|
|
|
| 238 |
|
| 239 |
def generate_pdf(html_string):
|
| 240 |
css = """
|