mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 11:58:34 +02:00
Moshe.download nltk data on start (#1014)
This commit is contained in:
parent
a4053501d0
commit
c0c9c67534
@ -1,3 +1,4 @@
|
||||
import nltk
|
||||
import time
|
||||
from threading import Event
|
||||
from typing import Any
|
||||
@ -357,6 +358,11 @@ if __name__ == "__main__":
|
||||
|
||||
slack_bot_tokens: SlackBotTokens | None = None
|
||||
socket_client: SocketModeClient | None = None
|
||||
|
||||
logger.info("Verifying query preprocessing (NLTK) data is downloaded")
|
||||
nltk.download("stopwords", quiet=True)
|
||||
nltk.download('punkt', quiet=True)
|
||||
|
||||
while True:
|
||||
try:
|
||||
latest_slack_bot_tokens = fetch_tokens()
|
||||
|
Loading…
x
Reference in New Issue
Block a user