Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files- pages/Data Collection.py +15 -3
pages/Data Collection.py
CHANGED
|
@@ -1439,11 +1439,23 @@ def main_page():
|
|
| 1439 |
# Display XML
|
| 1440 |
st.subheader("XML Data:")
|
| 1441 |
st.code(xml_data, language='xml')
|
| 1442 |
-
# Display HTML (rendered as HTML)
|
| 1443 |
-
st.subheader("HTML Data:")
|
| 1444 |
-
st.markdown(html_data, unsafe_allow_html=True)
|
| 1445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1446 |
|
|
|
|
| 1447 |
if st.button("CSV"):
|
| 1448 |
st.session_state['page'] = "csv"
|
| 1449 |
if st.button("JSON"):
|
|
|
|
| 1439 |
# Display XML
|
| 1440 |
st.subheader("XML Data:")
|
| 1441 |
st.code(xml_data, language='xml')
|
|
|
|
|
|
|
|
|
|
| 1442 |
|
| 1443 |
+
st.code("""
|
| 1444 |
+
<table>
|
| 1445 |
+
<tr><th>Name</th><th>City</th><th>Marks</th></tr>
|
| 1446 |
+
<tr><td>John</td><td>New York</td><td>95</td></tr>
|
| 1447 |
+
<tr><td>Alice</td><td>Los Angeles</td><td>88</td></tr>
|
| 1448 |
+
<tr><td>Bob</td><td>Chicago</td><td>92</td></tr>
|
| 1449 |
+
<tr><td>Eve</td><td>San Francisco</td><td>90</td></tr>
|
| 1450 |
+
</table>
|
| 1451 |
+
""",language = "python")
|
| 1452 |
+
|
| 1453 |
+
|
| 1454 |
+
|
| 1455 |
+
# Display the table using markdown
|
| 1456 |
+
st.markdown(html_code, unsafe_allow_html=True)
|
| 1457 |
|
| 1458 |
+
|
| 1459 |
if st.button("CSV"):
|
| 1460 |
st.session_state['page'] = "csv"
|
| 1461 |
if st.button("JSON"):
|