MapExtra / app.py
MadhuV28's picture
Update app.py
15953d3
raw
history blame
553 Bytes
import streamlit as st
import requests
from streamlit_lottie import st_lottie
import pandas as pd
st.title('"GPS"')
city_name = st.text_input('Please type the name of your city')
lat = st.number_input('Please type your latitude:')
long = st.number_input('Please type your longitude')
city_list = []
lat_list = []
long_list = []
if city_name != "" and lat != "" and long != "":
city_list.append(city_name)
lat_list.append(lat)
long_list.append(long)
st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))