fix: Flask模板路径配置修复
This commit is contained in:
Binary file not shown.
@@ -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)
|
||||
|
||||
# 初始化组件
|
||||
|
||||
Reference in New Issue
Block a user