Sasidhar commited on
Commit
bf1520a
1 Parent(s): 1d27146

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -98,7 +98,8 @@ def displayPDF(file):
98
  base64_pdf = base64.b64encode(f.read()).decode('utf-8')
99
 
100
  # Embedding PDF in HTML
101
- pdf_display = F'<iframe src="data:application/pdf;base64,{base64_pdf}" width="700" height="1000" type="application/pdf"></iframe>'
 
102
 
103
  # Displaying File
104
  st.markdown(pdf_display, unsafe_allow_html=True)
 
98
  base64_pdf = base64.b64encode(f.read()).decode('utf-8')
99
 
100
  # Embedding PDF in HTML
101
+ pdf_display = F'<embed src="data:application/pdf;base64,{base64_pdf}" width="700" height="1000" type="application/pdf">'
102
+
103
 
104
  # Displaying File
105
  st.markdown(pdf_display, unsafe_allow_html=True)