From 57ea23a6fac2ba12132a9f958352548ebd3febb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:53:20 +0800 Subject: [PATCH] Update app.py --- app/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.py b/app/app.py index c5e4a22..c86bc23 100644 --- a/app/app.py +++ b/app/app.py @@ -2,7 +2,7 @@ from flask import Flask, render_template, request, send_from_directory import os import re -app = Flask(__name__, template_folder='webui/templates', static_url_path='', static_folder='webui/static') +app = Flask(__name__, template_folder='webui', static_url_path='', static_folder='webui') FONT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'pic') # 字体文件夹路径 def list_font_files(font_dir): @@ -92,4 +92,4 @@ if not os.path.exists(FONT_DIR): if __name__ == '__main__': # 绑定到0.0.0.0,允许远程访问 - app.run(host='0.0.0.0', port=80, debug=False) \ No newline at end of file + app.run(host='0.0.0.0', port=80, debug=False)