LakshmiHarika commited on
Commit
cce0378
·
verified ·
1 Parent(s): 0fcf4ec

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +8 -18
pages/Data Collection.py CHANGED
@@ -135,9 +135,11 @@ if st.session_state.current_page == "main":
135
  """, unsafe_allow_html=True)
136
 
137
  st.write("Click to explore Structured Data Formats:")
138
- if st.button("Explore Excel"):
 
139
  navigate_to("explore_excel")
140
 
 
141
  elif data_type == "Unstructured Data":
142
  st.markdown("""
143
  <div style="text-align: left; margin-top: 20px;">
@@ -460,29 +462,17 @@ if st.session_state.current_page == "explore_excel":
460
  print(data.head())
461
  """, language="python")
462
 
463
-
464
  col1, col2 = st.columns(2)
465
 
466
  with col1:
467
- st.markdown("""
468
- <a href="https://colab.research.google.com/drive/1qSWM2h-_ND9Nv7GVW9q5onpdcrlFauHc?usp=sharing" target="_blank">
469
- <button style="background-color: #FFFFFF; color: black; border: none; padding: 10px 20px; text-align: center; text-decoration: none; font-size: 16px; border-radius: 5px; cursor: pointer;">
470
- Open Google Colab File
471
- </button>
472
- </a>
473
- """, unsafe_allow_html=True)
474
 
475
  with col2:
476
- st.markdown("""
477
- <a href="#" onclick="window.history.back(); return false;">
478
- <button style="background-color: #FFFFFF; color: black; border: none; padding: 10px 20px; text-align: center; text-decoration: none; font-size: 16px; border-radius: 5px; cursor: pointer;">
479
- ⬅️ Back to Previous Page
480
- </button>
481
- </a>
482
- """, unsafe_allow_html=True)
483
-
484
 
485
-
486
 
487
  elif st.session_state.current_page == "explore_images_video":
488
  st.markdown("""
 
135
  """, unsafe_allow_html=True)
136
 
137
  st.write("Click to explore Structured Data Formats:")
138
+ with col1:
139
+ if st.button("📊 Explore Excel"):
140
  navigate_to("explore_excel")
141
 
142
+
143
  elif data_type == "Unstructured Data":
144
  st.markdown("""
145
  <div style="text-align: left; margin-top: 20px;">
 
462
  print(data.head())
463
  """, language="python")
464
 
465
+
466
  col1, col2 = st.columns(2)
467
 
468
  with col1:
469
+ if st.button("Open Google Colab File"):
470
+ st.write("[Click here to open Colab](https://colab.research.google.com/drive/1qSWM2h-_ND9Nv7GVW9q5onpdcrlFauHc?usp=sharing)")
 
 
 
 
 
471
 
472
  with col2:
473
+ if st.button("⬅️ Back to Previous Page"):
474
+ st.session_state.current_page = "main" # Redirect to the "main" page
 
 
 
 
 
 
475
 
 
476
 
477
  elif st.session_state.current_page == "explore_images_video":
478
  st.markdown("""