- embeddings.py: BGE embeddings demo with similarity - stt.py: Whisper speech-to-text demo - tts.py: XTTS text-to-speech demo - theme.py: Shared DaviesTechLabs Gradio theme - K8s deployments for each app
96 lines
2.0 KiB
YAML
96 lines
2.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: tts-ui
|
|
namespace: ai-ml
|
|
labels:
|
|
app: tts-ui
|
|
component: demo-ui
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: tts-ui
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: tts-ui
|
|
component: demo-ui
|
|
spec:
|
|
containers:
|
|
- name: gradio
|
|
image: ghcr.io/billy-davies-2/llm-apps:v2-202601271655
|
|
imagePullPolicy: Always
|
|
command: ["python", "tts.py"]
|
|
ports:
|
|
- containerPort: 7860
|
|
name: http
|
|
protocol: TCP
|
|
env:
|
|
- name: TTS_URL
|
|
value: "http://tts-predictor.ai-ml.svc.cluster.local"
|
|
- name: MLFLOW_TRACKING_URI
|
|
value: "http://mlflow.mlflow.svc.cluster.local:80"
|
|
resources:
|
|
requests:
|
|
cpu: "100m"
|
|
memory: "256Mi"
|
|
limits:
|
|
cpu: "500m"
|
|
memory: "512Mi"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 7860
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 7860
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
imagePullSecrets:
|
|
- name: ghcr-registry
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: tts-ui
|
|
namespace: ai-ml
|
|
labels:
|
|
app: tts-ui
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 80
|
|
targetPort: 7860
|
|
protocol: TCP
|
|
name: http
|
|
selector:
|
|
app: tts-ui
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: tts-ui
|
|
namespace: ai-ml
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/hostname: tts-ui.lab.daviestechlabs.io
|
|
spec:
|
|
parentRefs:
|
|
- name: envoy-internal
|
|
namespace: network
|
|
sectionName: https
|
|
hostnames:
|
|
- tts-ui.lab.daviestechlabs.io
|
|
rules:
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: /
|
|
backendRefs:
|
|
- name: tts-ui
|
|
port: 80
|