Add minimal service stubs
This commit is contained in:
15
services/tts/app.py
Normal file
15
services/tts/app.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from fastapi import FastAPI
|
||||
import redis
|
||||
import os
|
||||
|
||||
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": "tts"}
|
||||
|
||||
# Позже здесь будет эндпоинт /synthesize
|
||||
Reference in New Issue
Block a user