Update app.py
Browse files
app.py
CHANGED
|
@@ -169,7 +169,14 @@ def app2():
|
|
| 169 |
|
| 170 |
|
| 171 |
with c2:
|
| 172 |
-
st.markdown("""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
#with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
|
| 174 |
# base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
| 175 |
#pdf_display = f'<embed src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf">'
|
|
|
|
| 169 |
|
| 170 |
|
| 171 |
with c2:
|
| 172 |
+
st.markdown("""
|
| 173 |
+
<embed src=tempfile.gettempdir()+"/annott.pdf" width="400" height="400">
|
| 174 |
+
""", unsafe_allow_html=True)
|
| 175 |
+
|
| 176 |
+
st.markdown("""
|
| 177 |
+
<embed src="https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" width="400" height="400">
|
| 178 |
+
""", unsafe_allow_html=True)
|
| 179 |
+
|
| 180 |
#with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
|
| 181 |
# base64_pdf = base64.b64encode(f.read()).decode('utf-8')
|
| 182 |
#pdf_display = f'<embed src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf">'
|