Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
14 |
|
15 |
-
if
|
16 |
|
17 |
-
split_city_state =
|
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 |
|