Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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'<
|
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
|