mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 06:38:59 +08:00
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:
parent
0657a09e2c
commit
c5368c7745
@ -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)
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user