rexsimiloluwah
refactored diarization endpoint and implemented gradio interface
50c3d40
Raw
History Blame Contribute Delete
397 Bytes
import os
import uvicorn
from fastapi import FastAPI
from config import config
from routers import diarizer
app = FastAPI()
app.include_router(diarizer.router, prefix="/api/v1")
@app.get("/healthcheck")
def healthcheck():
return {
"status": True,
"message": "Server is healthy!"
}
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=config.PORT)