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

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