wiwaaw commited on
Commit
a6089d1
1 Parent(s): 6868e46

Update app.py

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