File size: 503 Bytes
e7abd9e
 
58582d3
e7abd9e
 
 
 
 
 
 
 
58582d3
e7abd9e
 
 
 
58582d3
e7abd9e
58582d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from fastapi import FastAPI
from app.config.logging_config import setup_logging
from app.api import models, votes
import logging

# Initialize logging configuration
setup_logging()
logger = logging.getLogger(__name__)

app = FastAPI(title="Open LLM Leaderboard API")


@app.on_event("startup")
async def startup_event():
    logger.info("Starting up the application...")


app.include_router(models.router, prefix="/api", tags=["models"])
app.include_router(votes.router, prefix="/api", tags=["votes"])