lfoppiano commited on
Commit
4037844
1 Parent(s): 25f0178

embed instead of iframe

Browse files
Files changed (1) hide show
  1. streamlit_app.py +1 -1
streamlit_app.py CHANGED
@@ -268,7 +268,7 @@ with st.sidebar:
268
  @st.cache_resource
269
  def get_pdf_display(binary):
270
  base64_pdf = base64.b64encode(binary).decode('utf-8')
271
- return F'<iframe src="data:application/pdf;base64,{base64_pdf}" width="600" height="800" type="application/pdf"></embed>'
272
 
273
 
274
  if uploaded_file and not st.session_state.loaded_embeddings:
 
268
  @st.cache_resource
269
  def get_pdf_display(binary):
270
  base64_pdf = base64.b64encode(binary).decode('utf-8')
271
+ return F'<embed src="data:application/pdf;base64,{base64_pdf}" width="100%" height="700" type="application/pdf"></embed>'
272
 
273
 
274
  if uploaded_file and not st.session_state.loaded_embeddings: