Skip to content

Commit

Permalink
python: added face_detection template
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Gaikwad <[email protected]>
  • Loading branch information
gaikwadabhishek committed Dec 13, 2023
1 parent b60d9eb commit 10f00f7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions python/aistore/sdk/etl_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,3 +355,40 @@
path: /tmp/
type: Directory
"""

# pylint: disable=unused-variable
FACE_DETECTION_TRANSFORMER = """
apiVersion: v1
kind: Pod
metadata:
name: transformer-face-detection
annotations:
communication_type: "{communication_type}://"
wait_timeout: 5m
spec:
containers:
- name: server
image: aistorage/transformer_face_detection:latest
imagePullPolicy: Always
ports:
- name: default
containerPort: 8000
command: ["gunicorn", "main:app", "--workers", "5", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000"]
readinessProbe:
httpGet:
path: /health
port: default
env:
- name: FORMAT
value: "{format}"
- name: ARG_TYPE
value: "{arg_type}"
volumeMounts:
- name: ais
mountPath: /tmp/ais
volumes:
- name: ais
hostPath:
path: /tmp/ais
type: Directory
"""
2 changes: 1 addition & 1 deletion python/aistore/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.4.17"
__version__ = "1.4.18"

0 comments on commit 10f00f7

Please sign in to comment.