Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,10 @@ dataset = load_dataset("awacke1/DatasetOfDatasetsUSA")
|
|
9 |
# and a column 'title' for the text to display
|
10 |
links_html = "<ul>"
|
11 |
for item in dataset['train']: # Replace 'train' with the correct split if necessary
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
15 |
links_html += "</ul>"
|
16 |
|
17 |
# Use Streamlit components to render the HTML
|
|
|
9 |
# and a column 'title' for the text to display
|
10 |
links_html = "<ul>"
|
11 |
for item in dataset['train']: # Replace 'train' with the correct split if necessary
|
12 |
+
cityOrState=item['cityOrState']
|
13 |
+
link=item['link']
|
14 |
+
linkType=item['linkType']
|
15 |
+
links_html += f"<li><a href='{link}' target='_blank'>{cityOrState} - {linkType}</a></li>"
|
16 |
links_html += "</ul>"
|
17 |
|
18 |
# Use Streamlit components to render the HTML
|