Update app.py
Browse files
app.py
CHANGED
|
@@ -192,8 +192,8 @@ def app2():
|
|
| 192 |
|
| 193 |
with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
|
| 194 |
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
| 195 |
-
pdf_display = f'<embed src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf">'
|
| 196 |
-
|
| 197 |
st.markdown(pdf_display, unsafe_allow_html=True)
|
| 198 |
|
| 199 |
app.run()
|
|
|
|
| 192 |
|
| 193 |
with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
|
| 194 |
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
| 195 |
+
#pdf_display = f'<embed src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf">'
|
| 196 |
+
pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf"></iframe>'
|
| 197 |
st.markdown(pdf_display, unsafe_allow_html=True)
|
| 198 |
|
| 199 |
app.run()
|