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