resolve halt while starting up (#3397)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2024-11-14 13:20:17 +08:00 committed by GitHub
parent 0657a09e2c
commit c5368c7745
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -17,6 +17,7 @@
import sys
from api.utils.log_utils import logger
def python_version_validation():
# Check python version
required_python_version = (3, 10)
@ -33,5 +34,5 @@ python_version_validation()
# Download nltk data
import nltk
nltk.download('wordnet')
nltk.download('punkt_tab')
nltk.download('wordnet', halt_on_error=False, quiet=True)
nltk.download('punkt_tab', halt_on_error=False, quiet=True)

View File

@ -55,7 +55,6 @@ class RagTokenizer:
except Exception:
logger.exception(f"[HUQIE]:Build trie {fnm} failed")
def __init__(self, debug=False):
self.DEBUG = debug
self.DENOMINATOR = 1000000