File size: 641 Bytes
f937044
 
 
 
 
 
 
 
 
 
 
3208f1e
5039b78
e17cc21
f937044
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import streamlit as st
from datasets import load_dataset
import streamlit.components.v1 as components

# Load the dataset
dataset = load_dataset("awacke1/DatasetOfDatasetsUSA")

# Assuming the dataset has a column 'url' that contains the link to the datasets
# and a column 'title' for the text to display
links_html = "<ul>"
for item in dataset['train']:  # Replace 'train' with the correct split if necessary
    title = item['linkType']
    url = item['link']
    links_html += f"<li><a href='{link}' target='_blank'>{cityOrState}</a></li>"
links_html += "</ul>"

# Use Streamlit components to render the HTML
components.html(links_html)