Files
ai1/services/speaker-id/app.py
2026-02-20 02:40:50 +03:00

17 lines
464 B
Python

from fastapi import FastAPI
import redis
import os
import json
app = FastAPI()
redis_host = os.getenv("REDIS_HOST", "localhost")
redis_port = int(os.getenv("REDIS_PORT", 6379))
r = redis.Redis(host=redis_host, port=redis_port, decode_responses=True)
@app.get("/health")
async def health():
return {"status": "ok", "service": "speaker-id"}
# Позже здесь будут эндпоинты для регистрации и идентификации