Skip to content

Commit 717e03e

Browse files
authored
Update startup.py (#5065)
remove confusing importing method to keep consistency of code
1 parent 8c470f8 commit 717e03e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/chatchat-server/chatchat/startup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import asyncio
22
import logging
33
import logging.config
4-
import multiprocessing
54
import multiprocessing as mp
65
import os
76
import sys
@@ -357,7 +356,7 @@ class args:
357356
# 添加这行代码
358357
cwd = os.getcwd()
359358
sys.path.append(cwd)
360-
multiprocessing.freeze_support()
359+
mp.freeze_support()
361360
print("cwd:" + cwd)
362361
from chatchat.server.knowledge_base.migrate import create_tables
363362

0 commit comments

Comments
 (0)