Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import requests
|
|
| 3 |
from streamlit_lottie import st_lottie
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
-
st.title('
|
| 7 |
|
| 8 |
|
| 9 |
# Loads animation of the Earth
|
|
@@ -35,9 +35,17 @@ add_bg_from_url()
|
|
| 35 |
|
| 36 |
|
| 37 |
city_name = st.text_input('Please input your city')
|
| 38 |
-
lat = st.number_input('Please Input your
|
| 39 |
-
long = st.number_input('Please Input your
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
if city_name != "" and lat != "" and long != "":
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
|
|
|
|
| 3 |
from streamlit_lottie import st_lottie
|
| 4 |
import pandas as pd
|
| 5 |
|
| 6 |
+
st.title('Mark a point on the map, and I will take you there!')
|
| 7 |
|
| 8 |
|
| 9 |
# Loads animation of the Earth
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
city_name = st.text_input('Please input your city')
|
| 38 |
+
lat = st.number_input('Please Input your Latitude:')
|
| 39 |
+
long = st.number_input('Please Input your Longitude')
|
| 40 |
+
city_list = []
|
| 41 |
+
lat_list = []
|
| 42 |
+
long_list = []
|
| 43 |
+
|
| 44 |
+
|
| 45 |
if city_name != "" and lat != "" and long != "":
|
| 46 |
+
city_list.append(city_name)
|
| 47 |
+
lat_list.append(lat)
|
| 48 |
+
long_list.append(long)
|
| 49 |
+
st.map(pd.DataFrame({'cities' : cities, 'lat' : lat_list, 'lon' : long_list}))
|
| 50 |
|
| 51 |
|