Skip to content

Commit

Permalink
Update startup.py
Browse files Browse the repository at this point in the history
remove  confusing importing method to keep consistency of code
  • Loading branch information
Archkon authored Nov 9, 2024
1 parent 8c470f8 commit 848dfa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/chatchat-server/chatchat/startup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import logging
import logging.config
import multiprocessing
import multiprocessing as mp
import os
import sys
Expand Down Expand Up @@ -357,7 +356,7 @@ class args:
# 添加这行代码
cwd = os.getcwd()
sys.path.append(cwd)
multiprocessing.freeze_support()
mp.freeze_support()
print("cwd:" + cwd)
from chatchat.server.knowledge_base.migrate import create_tables

Expand Down

0 comments on commit 848dfa8

Please sign in to comment.