Spaces:
Sleeping
Sleeping
from fastapi import FastAPI | |
from dotenv import load_dotenv | |
from tasks import text | |
# Load environment variables | |
load_dotenv() | |
app = FastAPI( | |
title="Frugal AI Challenge API", | |
description="API for the Frugal AI Challenge evaluation endpoints" | |
) | |
async def health_check(): | |
return {"status": "ok"} | |
# Include text router | |
app.include_router(text.router) | |
async def root(): | |
return { | |
"message": "Welcome to the Frugal AI Challenge API", | |
"endpoints": { | |
"text": "/text - Text classification task" | |
} | |
} |