Spaces:
Runtime error
Runtime error
Commit
•
f0e3cf2
1
Parent(s):
24dc38a
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,11 @@ import streamlit as st
|
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
4 |
from datasets import load_dataset
|
5 |
-
|
6 |
-
|
7 |
-
dataset = load_dataset("
|
8 |
-
|
9 |
-
|
10 |
'cities' : ['Madison', 'Pittsburgh', 'Dallas', 'San Francisco','Los Angeles','Orlando', 'Miami', 'Tampa Bay', 'Buffalo','Boston','Washington D.C.', 'Atlanta', 'Houston', 'Austin','San Diego','Richmond', 'Myrtle Beach', 'Milwaukee','Detroit','UIUC', 'Purdue', 'Columbus','Lancaster','Alamo','Delaware', 'Cleveland', 'Louisville', 'Nashville','San Diego','Concord', 'Rochester', 'Santa Domingo', 'Toronto','San Juan','Las Vegas', 'Niagara Falls', 'Grand Canyon','Hyderabad','Guntur','Mutlur','Bapatla','Vijayawada','Ongole','Tirupati'],
|
11 |
|
12 |
'lat' : [43.073051, 40.440624, 32.776665, 37.774929,34.0522,28.5384,25.7617,27.7634,42.8864,
|
@@ -20,5 +20,5 @@ places_seen = pd.DataFrame({
|
|
20 |
-76.3055, -98.1231,-75.5277,-81.6944,-85.7585,-86.7816,-117.1611,-71.5376,-77.6088,-69.9312,-79.3832,-66.1057,
|
21 |
-115.1391,-79.0377,-112.1129, 78.4867, 80.4365,80.4841, 80.4671, 80.6480, 80.0499, 79.4192]})
|
22 |
|
23 |
-
st.map(
|
24 |
-
st.dataframe(
|
|
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
4 |
from datasets import load_dataset
|
5 |
+
|
6 |
+
st.title('Map')
|
7 |
+
dataset = load_dataset("csv", data_files="my_file.csv")
|
8 |
+
|
9 |
+
locs = pd.DataFrame({
|
10 |
'cities' : ['Madison', 'Pittsburgh', 'Dallas', 'San Francisco','Los Angeles','Orlando', 'Miami', 'Tampa Bay', 'Buffalo','Boston','Washington D.C.', 'Atlanta', 'Houston', 'Austin','San Diego','Richmond', 'Myrtle Beach', 'Milwaukee','Detroit','UIUC', 'Purdue', 'Columbus','Lancaster','Alamo','Delaware', 'Cleveland', 'Louisville', 'Nashville','San Diego','Concord', 'Rochester', 'Santa Domingo', 'Toronto','San Juan','Las Vegas', 'Niagara Falls', 'Grand Canyon','Hyderabad','Guntur','Mutlur','Bapatla','Vijayawada','Ongole','Tirupati'],
|
11 |
|
12 |
'lat' : [43.073051, 40.440624, 32.776665, 37.774929,34.0522,28.5384,25.7617,27.7634,42.8864,
|
|
|
20 |
-76.3055, -98.1231,-75.5277,-81.6944,-85.7585,-86.7816,-117.1611,-71.5376,-77.6088,-69.9312,-79.3832,-66.1057,
|
21 |
-115.1391,-79.0377,-112.1129, 78.4867, 80.4365,80.4841, 80.4671, 80.6480, 80.0499, 79.4192]})
|
22 |
|
23 |
+
st.map(locs)
|
24 |
+
st.dataframe(locs)
|