diff --git a/{{cookiecutter.project_slug}}/README.md b/{{cookiecutter.project_slug}}/README.md index 9a78d6e..6d12921 100644 --- a/{{cookiecutter.project_slug}}/README.md +++ b/{{cookiecutter.project_slug}}/README.md @@ -26,6 +26,9 @@ uvicorn app.api:app --reload ``` Open your browser to http://localhost:8000/docs to view the OpenAPI UI. +![Open API Image](./images/cookiecutter-docs.png) + + For an alternate view of the docs navigate to http://localhost:8000/redoc --- diff --git a/{{cookiecutter.project_slug}}/app/api.py b/{{cookiecutter.project_slug}}/app/api.py index 42f24a4..0416e73 100644 --- a/{{cookiecutter.project_slug}}/app/api.py +++ b/{{cookiecutter.project_slug}}/app/api.py @@ -34,7 +34,8 @@ app = FastAPI( openapi_prefix=prefix, ) -nlp = spacy.load("{{cookiecutter.project_language}}") +# nlp = spacy.load("{{cookiecutter.project_language}}") +nlp = spacy.load("en_core_web_sm") extractor = SpacyExtractor(nlp) diff --git a/{{cookiecutter.project_slug}}/create_virtualenv.sh b/{{cookiecutter.project_slug}}/create_virtualenv.sh index f2f9a75..cbc9554 100644 --- a/{{cookiecutter.project_slug}}/create_virtualenv.sh +++ b/{{cookiecutter.project_slug}}/create_virtualenv.sh @@ -1,2 +1,2 @@ pip3 install --user virtualenv -virtualenv .venv && source .venv/bin/activate && pip install -r ./requirements/spacy.txt && pip install -r ./requirements/base.txt \ No newline at end of file +virtualenv .venv && source .venv/bin/activate && pip install -r ./requirements/base.txt && python -m spacy download {{cookiecutter.project_language}} \ No newline at end of file diff --git a/{{cookiecutter.project_slug}}/images/cookiecutter-docs.png b/{{cookiecutter.project_slug}}/images/cookiecutter-docs.png new file mode 100644 index 0000000..30b2254 Binary files /dev/null and b/{{cookiecutter.project_slug}}/images/cookiecutter-docs.png differ