wiwaaw commited on
Commit
c3df5be
1 Parent(s): 4441659

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def display_pdf(file):
47
  with open(file, "rb") as f:
48
  base64_pdf = base64.b64encode(f.read()).decode('utf-8')
49
 
50
- pdf_display = F'<iframe src="data:application/pdf;base64,{base64_pdf}" width="100%" height="600" type="application/pdf"></iframe>'
51
  st.markdown(pdf_display, unsafe_allow_html=True)
52
 
53
  # Streamlit code
 
47
  with open(file, "rb") as f:
48
  base64_pdf = base64.b64encode(f.read()).decode('utf-8')
49
 
50
+ pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="100%" height="600" type="application/pdf"></iframe>'
51
  st.markdown(pdf_display, unsafe_allow_html=True)
52
 
53
  # Streamlit code