Download app.py from sycod/frugal_cviz: direct link, hf CLI and curl.
- Browser
- Download file 738 Bytes
-
https://huggingface.co/sycod/frugal_cviz/resolve/main/app.py
- Command line
-
hf download hf://sycod/frugal_cviz/app.py
-
curl -L -o app.py https://huggingface.co/sycod/frugal_cviz/resolve/main/app.py
738 Bytes
| from fastapi import FastAPI | |
| from dotenv import load_dotenv | |
| from tasks import text, image, audio | |
| # Load environment variables | |
| load_dotenv() | |
| app = FastAPI( | |
| title="Frugal AI Challenge API", | |
| description="API for the Frugal AI Challenge evaluation endpoints", | |
| ) | |
| # Include all routers | |
| app.include_router(text.router) | |
| app.include_router(image.router) | |
| app.include_router(audio.router) | |
| async def root(): | |
| return { | |
| "message": "Welcome to the Frugal AI Challenge API", | |
| "endpoints": { | |
| "text": "/text - Text classification task", | |
| "image": "/image - Image classification task (coming soon)", | |
| "audio": "/audio - Audio classification task (coming soon)", | |
| }, | |
| } | |