Spaces:
Build error
Build error
Commit
·
70507a8
1
Parent(s):
b90e071
Changed the file in iframe
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ def displayPDF(file,file_name):
|
|
| 98 |
|
| 99 |
# Embedding PDF in HTML
|
| 100 |
# pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="700" height="900" type="application/pdf"></iframe>'
|
| 101 |
-
pdf_display = f'<iframe src="{
|
| 102 |
# st.write()
|
| 103 |
# pdf_display = f'<embed src="http://localhost:8900/{file_name}" width="700" height="1000" type="application/pdf"></embed>'
|
| 104 |
# pdf_display = f'<iframe src="http://localhost:8900/{file_name}" width="700" height="900" type="application/pdf"></iframe>'
|
|
|
|
| 98 |
|
| 99 |
# Embedding PDF in HTML
|
| 100 |
# pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="700" height="900" type="application/pdf"></iframe>'
|
| 101 |
+
pdf_display = f'<iframe src="{file}" width="700" height="900" type="application/pdf"></iframe>'
|
| 102 |
# st.write()
|
| 103 |
# pdf_display = f'<embed src="http://localhost:8900/{file_name}" width="700" height="1000" type="application/pdf"></embed>'
|
| 104 |
# pdf_display = f'<iframe src="http://localhost:8900/{file_name}" width="700" height="900" type="application/pdf"></iframe>'
|