JenetGhumman's picture
Update app.py
4c6dd48 verified
raw
history blame
915 Bytes
from fastapi import FastAPI
from dotenv import load_dotenv
from tasks import text, image, audio # Ensure `text` is the updated module
# 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) # This should now include `/text_svm`
app.include_router(image.router)
app.include_router(audio.router)
@app.get("/")
async def root():
return {
"message": "Welcome to the Frugal AI Challenge API",
"endpoints": {
"text": "/text - Text classification task",
"text_svm": "/text_svm - Text classification using SVM", # Add this to the endpoints list
"image": "/image - Image classification task (coming soon)",
"audio": "/audio - Audio classification task (coming soon)"
}
}