dreji18 commited on
Commit
5c0f1a9
·
1 Parent(s): 41a89ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- #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()
 
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()