Update app.py

This commit is contained in:
星光-k
2025-01-16 19:53:20 +08:00
committed by GitHub
parent 5262d729fb
commit 57ea23a6fa

View File

@@ -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)
app.run(host='0.0.0.0', port=80, debug=False)