File size: 769 Bytes
a348db8
 
 
 
 
 
c23d8cd
a348db8
 
 
 
 
 
 
c23d8cd
a348db8
c23d8cd
a348db8
c23d8cd
a348db8
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from fastapi import FastAPI
from dotenv import load_dotenv
from tasks import text, image, audio

# Load environment variables
load_dotenv()
print(1)
app = FastAPI(
    title="Frugal AI Challenge API",
    description="API for the Frugal AI Challenge evaluation endpoints"
)

# Include all routers
app.include_router(text.router)
print(2)
app.include_router(image.router)
print(3)
app.include_router(audio.router)
print(4)

@app.get("/")
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)"
        }
    }