| 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"]) | |
| async def root(): | |
| return {"message": "Welcome to the Sign-Speech Communication System API"} | |