import folium
import streamlit as st
import pandas as pd#, geopandas as gpd
import base64
from streamlit_folium import st_folium
from folium.plugins import Draw
from st_aggrid import AgGrid, ColumnsAutoSizeMode, GridUpdateMode, JsCode
from st_aggrid.grid_options_builder import GridOptionsBuilder
# from shapely.geometry import Polygon
from shapely.wkt import loads as wkt_loads
# display PDF
PDF_HTML_iframe_template = (
""""""
)
def display_PDF(st, pdf_url='proforma-example.pdf'):
# /Users/junxiong/Documents/aire/acToolV2/due-diligence-check-example.pdf
pdf_file = open(pdf_url, 'rb')
base64_pdf = base64.b64encode(pdf_file.read()).decode('utf-8')
pdf_display = f'