File size: 644 Bytes
4fa0613
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"}