MapExtra / app.py
MadhuV28's picture
Update app.py
5b02de4
raw
history blame contribute delete
562 Bytes
import streamlit as st
import requests
from streamlit_lottie import st_lottie
import pandas as pd
st.title('"map"')
name_of_city = 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 name_of_city != "" and lat != "" and long != "":
city_list.append(name_of_city)
lat_list.append(lat)
long_list.append(long)
st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))