from flask import Flask, render_template_string from debug import DebugMonitor debug = DebugMonitor() app = Flask(__name__) @app.route("/") def home(): return render_template_string("""
Last Dream: {{ debug.last_dream }}
Last Thought: {{ debug.last_thought }}
Last Loss: {{ debug.last_loss }}
Last Reply: {{ debug.last_context }}
""", debug=debug) if __name__ == "__main__": app.run(port=5000)