dreji18 commited on
Commit
d32fbac
·
1 Parent(s): 1a622bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -168,14 +168,8 @@ def app2():
168
  document.save(tempfile.gettempdir()+"/annott.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')
@@ -202,6 +196,14 @@ def app2():
202
  # base64_pdf = base64.b64encode(f.read()).decode('utf-8')
203
  #pdf_display = f'<embed src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf">'
204
  #pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf"></iframe>'
 
 
 
 
 
 
 
 
205
 
206
 
207
 
 
168
  document.save(tempfile.gettempdir()+"/annott.pdf")
169
 
170
 
171
+ #with c2:
172
+
 
 
 
 
 
 
173
 
174
  #with open((tempfile.gettempdir()+"/annott.pdf"),"rb") as f:
175
  # base64_pdf = base64.b64encode(f.read()).decode('utf-8')
 
196
  # base64_pdf = base64.b64encode(f.read()).decode('utf-8')
197
  #pdf_display = f'<embed src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf">'
198
  #pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf"></iframe>'
199
+
200
+ st.markdown("""
201
+ <embed src=tempfile.gettempdir()+"/annott.pdf" width="400" height="400">
202
+ """, unsafe_allow_html=True)
203
+
204
+ st.markdown("""
205
+ <embed src="https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" width="400" height="400">
206
+ """, unsafe_allow_html=True)
207
 
208
 
209