LakshmiHarika commited on
Commit
bab01e5
·
verified ·
1 Parent(s): c037855

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +7 -9
pages/Data Collection.py CHANGED
@@ -881,16 +881,14 @@ elif st.session_state.current_page == "opencv_operations":
881
  [OpenCV Documentation](https://docs.opencv.org/4.x/)
882
  """)
883
 
884
- # Embed the Jupyter Notebook
885
- st.markdown("""
886
- <h3 style="color: #9400d3;">Explore the Jupyter Notebook</h3>
887
- """, unsafe_allow_html=True)
 
 
 
888
 
889
- st.markdown("""
890
- <iframe src="https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/Jupyter_Notes/images_page_2.html"
891
- width="100%" height="1000px" style="border:none;"></iframe>
892
- """, unsafe_allow_html=True)
893
-
894
 
895
  st.write("""
896
  In the next section, we'll take a closer look at **image creation and manipulation using OpenCV**. We'll discuss:
 
881
  [OpenCV Documentation](https://docs.opencv.org/4.x/)
882
  """)
883
 
884
+ if st.button("Open Jupyter Notebook"):
885
+ try:
886
+ with open("images_page_2.html", "r", encoding="utf-8") as f:
887
+ notebook_html = f.read()
888
+ st.components.v1.html(notebook_html, height=800, scrolling=True)
889
+ except FileNotFoundError:
890
+ st.error("Notebook HTML file not found.")
891
 
 
 
 
 
 
892
 
893
  st.write("""
894
  In the next section, we'll take a closer look at **image creation and manipulation using OpenCV**. We'll discuss: