HTML not showing with deployed Bokeh app using render_template()

I’m aware that this might not exactly be a Bokeh specific problem, but I’m wondering if anyone still has an idea to what is going on.

So my app deploys fine using two cdm terminals and 'bokeh serve random_generator.py --host="*"" and ‘python app.py’ my app shows up at 127.0.0.1:5006/random_generator.

However, although I send index.html into render_template() the header and paragraph text do not show up, only the actual random_generator shows.

I’m curious if anyone knows why this is? It’s probably some minor thing, but for the life of me I can’t find it :frowning:

####flask app
from flask import Flask, render_template
from bokeh.embed import autoload_server
from bokeh.client import pull_session
#inistiate the flask app
app = Flask(name)
#create index page function
@app.route("/")
def index():
url=“http://127.0.0.1:5006/random_generator
session=pull_session(url=url)
script, div =autoload_server(None, session_id=session.id, url=url)
return render_template(“index.html”, script=script, div=div)
#run app
if name == “main”:
app.run(debug=False)
####html file (located in /templates/ folder)

I am the title {% load static %}

I am a heading

{‌{div|safe}} {‌{js|safe}}

I am a paragraph

**####random generator.py**

#import libraries
from bokeh.io import curdoc
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure
from random import randrange
#create figure
f=figure(x_range=(0,11),y_range=(0,11))
#create columndatasource
source=ColumnDataSource(data=dict(x=,y=))
#create glyphs
f.circle(x=‘x’,y=‘y’,size=8,fill_color=‘olive’,line_color=‘yellow’,source=source)
#create periodic function
def update():
new_data=dict(x=[randrange(1,10)],y=[randrange(1,10)])
source.stream(new_data,rollover=15)
#add figure to curdoc and configure callback
curdoc().add_root(f)
curdoc().add_periodic_callback(update,1000)