williambr commited on
Commit
ecf0375
·
1 Parent(s): c754668

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -19
app.py CHANGED
@@ -34,22 +34,10 @@ def add_bg_from_url():
34
  add_bg_from_url()
35
 
36
 
37
- city_name = st.text_input('Please Input your Desired City:')
38
-
39
-
40
- int(lat) = st.text_input('Please Input the Latitude:' )
41
-
42
-
43
-
44
- int (long) = st.text_input('Please Input the Longitude:' )
45
-
46
-
47
-
48
- places_seen = pd.DataFrame({
49
- 'cities' : ["Boston", city_name],
50
-
51
- 'lat' : [42.361145, lat]
52
-
53
- ,'lon' : [-71.057083, long]})
54
-
55
- st.map(places_seen)
 
34
  add_bg_from_url()
35
 
36
 
37
+ city_name = st.text_input('Please input your city')
38
+ lat = st.text_input('Please Input your Lat')
39
+ long = st.text_input('Please Input your Long')
40
+ if city_name != "" and lat != "" and long != ""
41
+ st.map(pd.DataFramed({'cities' : [city_name], 'lat' : [lat], 'lon' : [long]}))
42
+
43
+