Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,6 @@ city_and_state_string = st.text_input("Please search for a city:")
|
|
14 |
|
15 |
|
16 |
try:
|
17 |
-
@st.cache
|
18 |
if city_and_state_string != "":
|
19 |
|
20 |
split_city_state = city_and_state_string.split(", ")
|
@@ -40,6 +39,9 @@ try:
|
|
40 |
st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))
|
41 |
st.write(city_name, "is located at: ", lat, ",", lon)
|
42 |
st.write("The zip code is: ", zipCode)
|
|
|
|
|
|
|
43 |
except:
|
44 |
st.write("Did you misspell something?")
|
45 |
|
|
|
14 |
|
15 |
|
16 |
try:
|
|
|
17 |
if city_and_state_string != "":
|
18 |
|
19 |
split_city_state = city_and_state_string.split(", ")
|
|
|
39 |
st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))
|
40 |
st.write(city_name, "is located at: ", lat, ",", lon)
|
41 |
st.write("The zip code is: ", zipCode)
|
42 |
+
st.write("Would you like to save this location?")
|
43 |
+
if st.button("Save")
|
44 |
+
st.write("Saved!")
|
45 |
except:
|
46 |
st.write("Did you misspell something?")
|
47 |
|