Spaces:
Runtime error
Runtime error
Nick Canu
commited on
Commit
·
d4f37b8
1
Parent(s):
cc506a4
blog path fix v2
Browse files
Home.py
CHANGED
@@ -368,10 +368,10 @@ def blog():
|
|
368 |
These concepts support general users and designers-to-be as alternatives to current concepts, seeds for future concepts, or an entertaining thought experiment.*")
|
369 |
|
370 |
# Code adapted from "Display and Download PDF in Streamlit: A Blog Use Case" by My Data Talk, https://towardsdatascience.com/display-and-download-pdf-in-streamlit-a-blog-use-case-5fc1ac87d4b1
|
371 |
-
path = Path(__file__).parent / '
|
372 |
with open(path, "rb") as blog_file:
|
373 |
blog_pdf = base64.b64encode(blog_file.read()).decode('utf-8')
|
374 |
-
blog_display = f'<center><iframe src="data:application/pdf;base64,{blog_pdf}" width=
|
375 |
|
376 |
st.markdown(blog_display, unsafe_allow_html=True)
|
377 |
|
|
|
368 |
These concepts support general users and designers-to-be as alternatives to current concepts, seeds for future concepts, or an entertaining thought experiment.*")
|
369 |
|
370 |
# Code adapted from "Display and Download PDF in Streamlit: A Blog Use Case" by My Data Talk, https://towardsdatascience.com/display-and-download-pdf-in-streamlit-a-blog-use-case-5fc1ac87d4b1
|
371 |
+
path = Path(__file__).parent / 'Auto_BG_Blog.pdf'
|
372 |
with open(path, "rb") as blog_file:
|
373 |
blog_pdf = base64.b64encode(blog_file.read()).decode('utf-8')
|
374 |
+
blog_display = f'<center><iframe src="data:application/pdf;base64,{blog_pdf}" width=100% height=800 type="application/pdf"></iframe><center>'
|
375 |
|
376 |
st.markdown(blog_display, unsafe_allow_html=True)
|
377 |
|