Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files- 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;
|
| 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 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
| 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 |
-
|
|
|
|
| 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)
|