diff --git a/server_fastapi.py b/server_fastapi.py index a8f50a6..6c231c7 100644 --- a/server_fastapi.py +++ b/server_fastapi.py @@ -26,6 +26,8 @@ import tools.translate as trans from config import config +os.environ["TOKENIZERS_PARALLELISM"] = "false" + class Model: """模型封装类"""