Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,11 @@ import requests
|
|
3 |
from streamlit_lottie import st_lottie
|
4 |
import pandas as pd
|
5 |
|
6 |
-
st.title('"
|
7 |
|
8 |
|
9 |
|
10 |
-
|
11 |
lat = st.number_input('Please type your latitude:')
|
12 |
long = st.number_input('Please type your longitude')
|
13 |
city_list = []
|
@@ -16,7 +16,7 @@ long_list = []
|
|
16 |
|
17 |
|
18 |
if city_name != "" and lat != "" and long != "":
|
19 |
-
city_list.append(
|
20 |
lat_list.append(lat)
|
21 |
long_list.append(long)
|
22 |
st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))
|
|
|
3 |
from streamlit_lottie import st_lottie
|
4 |
import pandas as pd
|
5 |
|
6 |
+
st.title('"map"')
|
7 |
|
8 |
|
9 |
|
10 |
+
name_of_city = st.text_input('Please type the name of your city')
|
11 |
lat = st.number_input('Please type your latitude:')
|
12 |
long = st.number_input('Please type your longitude')
|
13 |
city_list = []
|
|
|
16 |
|
17 |
|
18 |
if city_name != "" and lat != "" and long != "":
|
19 |
+
city_list.append(name_of_city)
|
20 |
lat_list.append(lat)
|
21 |
long_list.append(long)
|
22 |
st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))
|