williambr commited on
Commit
f8ca16c
1 Parent(s): 174c1e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -6,19 +6,21 @@ df = pd.read_csv('Map-City-State-Zip-Lat-Long.txt', dtype=str, sep=';')
6
  df = df["Latitude"] = df["Latitude"].astype(float)
7
 
8
 
 
9
  st.title("Input a city or zip code and we will take you there!")
10
 
11
  city_name = st.text_input("Please search for a city:")
12
  lat = df[df["City"] == city_name]["Latitude"].values[0]
13
 
 
 
 
14
 
15
  city_list = []
16
  lat_list = []
17
  long_list = []
18
 
19
 
20
- if city_name != "":
21
- st.write(lat)
22
  #city_list.append(city_name)
23
  #lat_list.append(lat)
24
  #long_list.append(lon)
 
6
  df = df["Latitude"] = df["Latitude"].astype(float)
7
 
8
 
9
+
10
  st.title("Input a city or zip code and we will take you there!")
11
 
12
  city_name = st.text_input("Please search for a city:")
13
  lat = df[df["City"] == city_name]["Latitude"].values[0]
14
 
15
+ st.write(lat)
16
+
17
+
18
 
19
  city_list = []
20
  lat_list = []
21
  long_list = []
22
 
23
 
 
 
24
  #city_list.append(city_name)
25
  #lat_list.append(lat)
26
  #long_list.append(lon)