Skip to content

Commit

Permalink
Merge pull request #84 from bothub-it/staging
Browse files Browse the repository at this point in the history
hotfix - Version 3.0.18
  • Loading branch information
lucasagra authored Feb 4, 2021
2 parents d5428a0 + e123f4d commit 9e1d5d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bothub_nlp_api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down
4 changes: 2 additions & 2 deletions bothub_nlp_api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 9e1d5d7

Please sign in to comment.