from flask import Flask, render_template import threading app = Flask(__name__) @app.route("/") def index(): return render_template("index.html") def run_dashboard(): app.run(host="0.0.0.0", port=5000, debug=False, use_reloader=False)