I’m struggling with adding an app with Folium. Works fine locally but when I deploy get errors:


File “/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py”, line 354, in _run_script
exec(code, module.dict)File “/app/swanseaproperty/SwanseaHouseStreamlit.py”, line 89, in 
m, choropleth=plotmap(option)File “/app/swanseaproperty/SwanseaHouseStreamlit.py”, line 57, in plotmap
fill_opacity=0.7)File “/home/appuser/venv/lib/python3.7/site-packages/folium/features.py”, line 1293, in init
highlight_function=highlight_function if highlight else None)File “/home/appuser/venv/lib/python3.7/site-packages/folium/features.py”, line 499, in init
self.data = self.process_data(data)File “/home/appuser/venv/lib/python3.7/site-packages/folium/features.py”, line 536, in process_data
with open(data) as f:


  

      github.com
  

  
    dMaterialia/SwanseaProperty/blob/main/SwanseaHouseStreamlit.py 3


    import streamlit as st
from streamlit_folium import folium_static
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import geopandas as gpd
import folium
    
st.title('House details in Swansea, UK')
whattoplotBIG=['Price','Predicted Price','Predicted Price Difference']
fnameBIG=['SwanseaCombo_WivPricesWiv4sq.csv','RF_PropertDetailsPred','RF_LocationPred','RF_PropertANDLocationPred','RF_LatLongPred']


    
#@st.cache
def load_dat():
    import pickle
    
    
    



  This file has been truncated. show original

  

  
    
    
  

  


Any help appreciated, sure it’s something obvious just can’t figure it out