Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def display_pdf(file):
|
|
46 |
with open(file, "rb") as f:
|
47 |
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
48 |
|
49 |
-
pdf_display =
|
50 |
st.markdown(pdf_display, unsafe_allow_html=True)
|
51 |
|
52 |
# Streamlit code
|
|
|
46 |
with open(file, "rb") as f:
|
47 |
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
48 |
|
49 |
+
pdf_display = F'<iframe src="data:application/pdf;base64,{base64_pdf}" width="100%" height="600" type="application/pdf"></iframe>'
|
50 |
st.markdown(pdf_display, unsafe_allow_html=True)
|
51 |
|
52 |
# Streamlit code
|