pktpaulie commited on
Commit
271c8bd
·
verified ·
1 Parent(s): 34ad7db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -328,7 +328,11 @@ def display_doc_as_image2(pdf_path):
328
  # except Exception as e:
329
  # st.error(f"Failed to display image: {str(e)}")
330
 
331
- <iframe src=pdf_path width="100%" height="600px"></iframe>
 
 
 
 
332
 
333
  # try:
334
  # # Convert PDF to images
 
328
  # except Exception as e:
329
  # st.error(f"Failed to display image: {str(e)}")
330
 
331
+
332
+ iframe_code = f"""
333
+ <iframe src="{pdf_path}" width="100%" height="600px"></iframe>
334
+ """
335
+ st.markdown(iframe_code, unsafe_allow_html=True)
336
 
337
  # try:
338
  # # Convert PDF to images