deaf_comm / app /main.py
Fred-Rcky's picture
Upload folder using huggingface_hub
4fa0613 verified
Raw
History Blame Contribute Delete
644 Bytes
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from app.routes import sign_to_speech, speech_to_sign
import os
app = FastAPI(title="Sign-Speech Communication System API")
# Mount assets directory to serve video files
assets_path = os.path.join(os.path.dirname(__file__), "assets")
app.mount("/assets", StaticFiles(directory=assets_path), name="assets")
# Include routers
app.include_router(sign_to_speech.router, tags=["Sign-to-Speech"])
app.include_router(speech_to_sign.router, tags=["Speech-to-Sign"])
@app.get("/")
async def root():
return {"message": "Welcome to the Sign-Speech Communication System API"}