Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ df["Longitude"] = df["Longitude"].astype(float)
|
|
| 11 |
st.title("Input a city and I'll take you there!")
|
| 12 |
|
| 13 |
city_name = st.text_input("Please search for a city:")
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
if city_name != "":
|
| 17 |
lat = df[df["City"] == city_name]["Latitude"].values[0]
|
|
|
|
| 11 |
st.title("Input a city and I'll take you there!")
|
| 12 |
|
| 13 |
city_name = st.text_input("Please search for a city:")
|
| 14 |
+
split_city_state = city_name.split(", ")
|
| 15 |
+
state_name = split_city_state[1]
|
| 16 |
|
| 17 |
if city_name != "":
|
| 18 |
lat = df[df["City"] == city_name]["Latitude"].values[0]
|