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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -193,7 +193,9 @@ def app2():
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()
 
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
+ pdf_display = F'<iframe src="data:application/pdf;base64,{base64_pdf}" width="700" height="1000" type="application/pdf"></iframe>'
198
+
199
  st.markdown(pdf_display, unsafe_allow_html=True)
200
 
201
  app.run()