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