Skip to content

Commit

Permalink
updating spacy notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
nadinet committed Mar 19, 2021
1 parent 8975a87 commit f5c800f
Show file tree
Hide file tree
Showing 3 changed files with 541 additions and 120 deletions.
4 changes: 2 additions & 2 deletions examples/models/sklearn_spacy_text/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM seldonio/seldon-core-s2i-python3:1.1.1-rc
FROM seldonio/seldon-core-s2i-python37-ubi8:1.7.0-dev

RUN pip install spacy
RUN pip install spacy==2.3.2
RUN python -m spacy download en_core_web_sm
92 changes: 45 additions & 47 deletions examples/models/sklearn_spacy_text/reddit_clf.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,51 @@
{
"apiVersion": "machinelearning.seldon.io/v1alpha2",
"kind": "SeldonDeployment",
"metadata": {
"labels": {
"app": "seldon"
},
"name": "reddit-classifier"
},
"spec": {
"annotations": {
"project_name": "Reddit classifier",
"deployment_version": "v1"
"apiVersion": "machinelearning.seldon.io/v1alpha2",
"kind": "SeldonDeployment",
"metadata": {
"labels": {
"app": "seldon"
},
"name": "reddit-classifier"
},
"name": "reddit-classifier",
"predictors": [
{
"componentSpecs": [
{
"spec": {
"containers": [
{
"image": "reddit-classifier:0.1",
"imagePullPolicy": "IfNotPresent",
"name": "classifier",
"resources": {
"requests": {
"memory": "1Mi"
}
}
}
],
"terminationGracePeriodSeconds": 20
}
}
],
"graph": {
"children": [],
"name": "classifier",
"endpoint": {
"type": "REST"
},
"type": "MODEL"
"spec": {
"annotations": {
"project_name": "Reddit classifier",
"deployment_version": "v1"
},
"name": "single-model",
"replicas": 1,
"name": "reddit-classifier",
"predictors": [
{
"componentSpecs": [{
"spec": {
"containers": [
{
"image": "seldonio/reddit-classifier:0.1",
"imagePullPolicy": "IfNotPresent",
"name": "classifier",
"resources": {
"requests": {
"memory": "1Mi"
}
}
}
],
"terminationGracePeriodSeconds": 20
}
}],
"graph": {
"children": [],
"name": "classifier",
"endpoint": {
"type" : "REST"
},
"type": "MODEL"
},
"name": "single-model",
"replicas": 1,
"annotations": {
"predictor_version": "v1"
"predictor_version" : "v1"
}
}
]
}
}
]
}
}
Loading

0 comments on commit f5c800f

Please sign in to comment.