# Default Flask Template For Stand Alone Web UI Applications # K0NxT3D - 2024 # Notes: This version does not launch via torsocks. # Adding a launcher script will alleviate this issue. import os import subprocess import webbrowser from threading import Timer from threading import Thread from flask import Flask, render_template_string, request # In Default requirements.txt File As 2.0.3 TITLE = "Flask Template" VERSION = '1.0.0' APPNAME = f"{TITLE} {VERSION}" PORT = 26001 app = Flask(TITLE) @app.route('/', methods=['GET', 'POST']) def index(): return render_template_string(TEMPLATE, appname=APPNAME, title=TITLE, version=VERSION) # HTML Template With Bootstrap And Oswald Font Embedded - Custom CSS Files Can Be Called In . TEMPLATE = """
You May Now Close This Window.