Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download backend/app/main.py from fr-gouv-coordination-ia/llm_leaderboard_fr: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/fr-gouv-coordination-ia/llm_leaderboard_fr/resolve/95404184d4513e881b639b850353fca724860e63/backend/app/main.py
- Command line
-
hf download hf://spaces/fr-gouv-coordination-ia/llm_leaderboard_fr@95404184d4513e881b639b850353fca724860e63/backend/app/main.py
-
curl -L -o main.py https://huggingface.co/spaces/fr-gouv-coordination-ia/llm_leaderboard_fr/resolve/95404184d4513e881b639b850353fca724860e63/backend/app/main.py
555 Bytes
| from fastapi import FastAPI | |
| from app.config.logging_config import setup_logging | |
| import logging | |
| # Initialize logging configuration | |
| setup_logging() | |
| logger = logging.getLogger(__name__) | |
| app = FastAPI(title="Open LLM Leaderboard API") | |
| async def startup_event(): | |
| logger.info("Starting up the application...") | |
| # Import and include routers after app initialization | |
| from app.api import models, votes | |
| app.include_router(models.router, prefix="/api", tags=["models"]) | |
| app.include_router(votes.router, prefix="/api", tags=["votes"]) |