Deploying folium app get an error

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:

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