ShayanRl commited on
Commit
ee4cf98
·
verified ·
1 Parent(s): 159e468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -74,11 +74,9 @@ if button and pdfURL:
74
  st.text_area("Extracted Text", text, height=300)
75
 
76
  st.subheader("HTML Content")
77
- st.download_button(
78
- label="Download HTML",
79
- data=html,
80
- file_name="extracted_content.html",
81
- mime="text/html"
82
- )
83
  with st.expander("View HTML Source"):
84
  st.code(html, language='html')
 
74
  st.text_area("Extracted Text", text, height=300)
75
 
76
  st.subheader("HTML Content")
77
+ st.write("Rendered HTML Preview:")
78
+ import streamlit.components.v1 as components
79
+ components.html(html, height=600, scrolling=True)
80
+
 
 
81
  with st.expander("View HTML Source"):
82
  st.code(html, language='html')