awacke1 commited on
Commit
6282e22
Β·
verified Β·
1 Parent(s): 5039b78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- title = item['linkType']
13
- url = item['link']
14
- links_html += f"<li><a href='{link}' target='_blank'>{cityOrState}</a></li>"
 
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