CoolFace
Apppublic

VGCQ/submission-template-test

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
app.py27 linesDownload Raw Back to root
1from fastapi import FastAPI2from dotenv import load_dotenv3from tasks import text, image, audio4 5# Load environment variables6load_dotenv()7 8app = FastAPI(9    title="Frugal AI Challenge API",10    description="API for the Frugal AI Challenge evaluation endpoints"11)12 13# Include all routers14app.include_router(text.router)15app.include_router(image.router)16app.include_router(audio.router)17 18@app.get("/")19async def root():20    return {21        "message": "Welcome to the Frugal AI Challenge API",22        "endpoints": {23            # "text": "/text - Text classification task",24            "image": "/image - Image classification task",25            # "audio": "/audio - Audio classification task (coming soon)"26        }27    }