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

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +9 -12
pages/Data Collection.py CHANGED
@@ -881,18 +881,15 @@ elif st.session_state.current_page == "opencv_operations":
881
  [OpenCV Documentation](https://docs.opencv.org/4.x/)
882
  """)
883
 
884
- if st.button("Open Jupyter Notebook"):
885
- try:
886
- # URL to the hosted HTML notebook
887
- notebook_url = "https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/Jupyter_Notes/images_page_2.html"
888
-
889
- # Embed the notebook HTML file in the app
890
- st.components.v1.html(f"""
891
- <iframe src="{notebook_url}" width="100%" height="800px" style="border:none;"></iframe>
892
- """, height=800, scrolling=True)
893
- except Exception as e:
894
- st.error("An error occurred while loading the notebook.")
895
- st.write(e)
896
 
897
 
898
  st.write("""
 
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("""