mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 11:59:00 +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
|
import sys
|
||||||
from api.utils.log_utils import logger
|
from api.utils.log_utils import logger
|
||||||
|
|
||||||
|
|
||||||
def python_version_validation():
|
def python_version_validation():
|
||||||
# Check python version
|
# Check python version
|
||||||
required_python_version = (3, 10)
|
required_python_version = (3, 10)
|
||||||
@ -33,5 +34,5 @@ python_version_validation()
|
|||||||
|
|
||||||
# Download nltk data
|
# Download nltk data
|
||||||
import nltk
|
import nltk
|
||||||
nltk.download('wordnet')
|
nltk.download('wordnet', halt_on_error=False, quiet=True)
|
||||||
nltk.download('punkt_tab')
|
nltk.download('punkt_tab', halt_on_error=False, quiet=True)
|
@ -55,7 +55,6 @@ class RagTokenizer:
|
|||||||
except Exception:
|
except Exception:
|
||||||
logger.exception(f"[HUQIE]:Build trie {fnm} failed")
|
logger.exception(f"[HUQIE]:Build trie {fnm} failed")
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, debug=False):
|
def __init__(self, debug=False):
|
||||||
self.DEBUG = debug
|
self.DEBUG = debug
|
||||||
self.DENOMINATOR = 1000000
|
self.DENOMINATOR = 1000000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user