MadhuV28 commited on
Commit
8f99e9d
·
1 Parent(s): 15953d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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('"GPS"')
7
 
8
 
9
 
10
- city_name = 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,7 +16,7 @@ long_list = []
16
 
17
 
18
  if city_name != "" and lat != "" and long != "":
19
- city_list.append(city_name)
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}))