williambr commited on
Commit
c120a6b
·
1 Parent(s): ab2c0da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
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('Plot and track your vacations!')
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 Lat')
39
- long = st.number_input('Please Input your Long')
 
 
 
 
 
40
  if city_name != "" and lat != "" and long != "":
41
- st.map(pd.DataFrame({'cities' : [city_name], 'lat' : [lat], 'lon' : [long]}))
 
 
 
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