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)