apply Basil's suggestion

Co-authored-by: Basile Dura <bdura@users.noreply.github.com>
This commit is contained in:
Sofie Van Landeghem 2023-06-01 16:56:57 +02:00 committed by GitHub
parent 5f1adceb9c
commit e4e1f18a5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4128,8 +4128,12 @@
"github": "rstudio/vetiver-python", "github": "rstudio/vetiver-python",
"pip": "vetiver", "pip": "vetiver",
"code_example": [ "code_example": [
"import spacy",
"from vetiver import VetiverModel, VetiverAPI", "from vetiver import VetiverModel, VetiverAPI",
"", "",
"# If you use this model, you'll need to download it first:",
"# python -m spacy download en_core_web_sm",
"nlp = spacy.load('en_core_web_md')",
"# Create deployable model object with your nlp Language object", "# Create deployable model object with your nlp Language object",
"v = VetiverModel(nlp, model_name = 'my_model')", "v = VetiverModel(nlp, model_name = 'my_model')",
"# Try out your API endpoint locally", "# Try out your API endpoint locally",