Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ 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 |
-
state_name = city_name.split(", ",
|
| 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 |
+
state_name = city_name.split(", ", 2)
|
| 15 |
|
| 16 |
if city_name != "":
|
| 17 |
lat = df[df["City"] == city_name]["Latitude"].values[0]
|