LakshmiHarika commited on
Commit
3cdf0ba
·
verified ·
1 Parent(s): 0e24431

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +20 -17
pages/Data Collection.py CHANGED
@@ -12,28 +12,30 @@ st.set_page_config(
12
  st.markdown("""
13
  <style>
14
  body, .stApp {
15
- color: #4F4F4F; /* Replace with your desired font color */
16
- background-color: #FFFFFF; /* Optional: Set a fixed background color */
17
  }
18
  h1, h2, h3, h4, h5, h6 {
19
- color: #BB3385; /* Replace with your heading color */
20
  }
21
  p {
22
- color: #4F4F4F; /* Replace with your paragraph text color */
23
  }
24
  ul li {
25
- color: #4F4F4F; /* List item color */
26
  }
27
- </style>
28
- """, unsafe_allow_html=True)
29
-
30
- st.markdown("""
31
- <style>
32
- .stApp {
33
- background-image: url("https://huggingface.co/spaces/LakshmiHarika/MachineLearning/resolve/main/DALL%C2%B7E%202024-12-03%2023.34.47%20-%20A%20simple%20and%20elegant%20background%20image%20for%20an%20AI-themed%20web%20application.%20The%20background%20should%20feature%20a%20soft%20gradient%20transitioning%20from%20white%20to%20ligh.webp");
34
- background-size: cover;
35
- background-repeat: no-repeat;
36
- background-attachment: fixed;
 
 
37
  }
38
  </style>
39
  """, unsafe_allow_html=True)
@@ -105,7 +107,8 @@ if data_type == "Structured Data":
105
  A database of students with fields like ID, name, age, and gender:
106
  """)
107
 
108
- student_data = {
 
109
  "Id": [100, 101, 102, 103],
110
  "Name": ["Lakshmi Harika", "Varshitha", "Hari Chandan", "Shamitha"],
111
  "Age": [22, 23, 22, 23],
@@ -117,4 +120,4 @@ if data_type == "Structured Data":
117
  'selector': 'thead th',
118
  'props': 'font-weight: bold;'
119
  }]
120
- ).hide(axis="index").to_html(), unsafe_allow_html=True)
 
12
  st.markdown("""
13
  <style>
14
  body, .stApp {
15
+ color: #4F4F4F;
16
+ background-color: #FFFFFF;
17
  }
18
  h1, h2, h3, h4, h5, h6 {
19
+ color: #BB3385;
20
  }
21
  p {
22
+ color: #4F4F4F;
23
  }
24
  ul li {
25
+ color: #4F4F4F;
26
  }
27
+ table {
28
+ font-size: 14px; /* Decreased font size for smaller table */
29
+ margin: auto;
30
+ width: 70%; /* Reduced table width */
31
+ border-collapse: collapse;
32
+ }
33
+ th {
34
+ font-weight: bold;
35
+ text-align: center;
36
+ }
37
+ td {
38
+ text-align: left;
39
  }
40
  </style>
41
  """, unsafe_allow_html=True)
 
107
  A database of students with fields like ID, name, age, and gender:
108
  """)
109
 
110
+ # Corrected table for the Student database example
111
+ student_data = {
112
  "Id": [100, 101, 102, 103],
113
  "Name": ["Lakshmi Harika", "Varshitha", "Hari Chandan", "Shamitha"],
114
  "Age": [22, 23, 22, 23],
 
120
  'selector': 'thead th',
121
  'props': 'font-weight: bold;'
122
  }]
123
+ ).hide(axis="index").to_html(), unsafe_allow_html=True)