I'm working on getting a map to render in Flask. I'm not getting any errors, but the map is not rendering.
# function in flask to build map
def get_map():
folium_map = folium.Map(location=[41.88, -87.62],
zoom_start=13,
tiles="cartodbpositron",
width='75%',
height='75%')
return folium_map
....
# rendering template
mapvar = get_map()
return flask.render_template('predictor.html',
map = mapvar,
most_likely_class_prob = predictions,
form = form)
And this is how I display it in my html file
<p> Map: {{map}} </p>
<p> Probability: {{most_likely_class_prob}}
I'd appreciate any suggestions! I'm working on building this out further. Thanks you!