fix: Flask模板路径配置修复

This commit is contained in:
2026-04-12 02:04:27 +08:00
parent 4ab0ed0893
commit 43f758807e
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -13,7 +13,9 @@ from .orchestrator import Orchestrator
from .worker import WorkerPool, create_default_workers
from .llm_client import LLMClient
app = Flask(__name__)
import os
template_dir = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'templates')
app = Flask(__name__, template_folder=template_dir)
CORS(app)
# 初始化组件