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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def displayPDF(file):
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
 
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
 
104
  # Displaying File