diff --git a/bothub_nlp_api/app.py b/bothub_nlp_api/app.py index c7536776..83799939 100644 --- a/bothub_nlp_api/app.py +++ b/bothub_nlp_api/app.py @@ -18,7 +18,7 @@ dsn=settings.BOTHUB_NLP_SENTRY, environment=settings.ENVIRONMENT ) # pragma: no cover -app = FastAPI(title="Bothub NLP", version="3.0.17", description="", docs_url="/") +app = FastAPI(title="Bothub NLP", version="3.0.18", description="", docs_url="/") app.include_router(v1.router, tags=["v1"]) diff --git a/bothub_nlp_api/utils.py b/bothub_nlp_api/utils.py index 3686dacf..38508d7b 100644 --- a/bothub_nlp_api/utils.py +++ b/bothub_nlp_api/utils.py @@ -213,14 +213,14 @@ def get_language_model(update): model = ALGORITHM_TO_LANGUAGE_MODEL[update.get("algorithm")] language = update.get("language") - if model == "SPACY" and language not in settings.SPACY_LANGUAGES: + if model == "SPACY" and language not in celery_settings.SPACY_LANGUAGES: model = None # Send parse to SPACY worker to use name_entities (only if BERT not in use) if ( (update.get("use_name_entities")) and (model is None) - and (language in settings.SPACY_LANGUAGES) + and (language in celery_settings.SPACY_LANGUAGES) ): model = "SPACY"