INNER CODE UNIT · Python

create_app

Nour833/StegoForge · web/app.py:220

def create_app():
    if getattr(sys, 'frozen', False):
        template_folder = os.path.join(sys._MEIPASS, 'web', 'templates')
        static_folder = os.path.join(sys._MEIPASS, 'web', 'static')
        app = Flask(__name__, template_folder=template_folder, static_folder=static_folder)
    else:
        app = Flask(__name__, template_folder="templates", static_folder="static")
    CORS(app)
    app.config["MAX_CONTENT_LENGTH"] = 200 * 1024 * 1024  # 200MB max upload

    _cleanup_old_artifacts()

    @app.route("/")
    def index():
        return render_template("index.html", initial_tab="encode")

    @app.route("/survive")
    def survive_page():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…