williambr commited on
Commit
0909a51
1 Parent(s): 4bbf518

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,11 +10,11 @@ df["Longitude"] = df["Longitude"].astype(float)
10
 
11
  st.title("Input a city and state I'll take you there! - Ex. Mound, MN")
12
 
13
- city = st.text_input("Please search for a city:")
14
 
15
- if city != "":
16
 
17
- split_city_state = city.split(", ")
18
  state_name = split_city_state[1]
19
  city_name = split_city_state[0]
20
 
 
10
 
11
  st.title("Input a city and state I'll take you there! - Ex. Mound, MN")
12
 
13
+ city_and_state_string = st.text_input("Please search for a city:")
14
 
15
+ if city_and_state_string != "":
16
 
17
+ split_city_state = city_and_state_string.split(", ")
18
  state_name = split_city_state[1]
19
  city_name = split_city_state[0]
20