I have spatial data in (*.shp) format which is nothing but a polygon file with spatial coordinates.
I am using file_uploader to get the file from the local path and dump it in geopandas for further processing.
import streamlit as st
import geopandas as gpd
input = st.file_uploader(“Upload AOI *.shp file”, type=‘shp’)
if input is not None:
f_name = gpd.read_file(input)