Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,8 @@ def displayPDF(file):
|
|
98 |
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
99 |
|
100 |
# Embedding PDF in HTML
|
101 |
-
|
|
|
102 |
|
103 |
# Displaying File
|
104 |
st.markdown(pdf_display, unsafe_allow_html=True)
|
|
|
98 |
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
99 |
|
100 |
# Embedding PDF in HTML
|
101 |
+
pdf_display = F'<embed src="data:application/pdf;base64,{base64_pdf}" width="700" height="1000" type="application/pdf">'
|
102 |
+
|
103 |
|
104 |
# Displaying File
|
105 |
st.markdown(pdf_display, unsafe_allow_html=True)
|