Spaces:
Sleeping
Sleeping
Download main.py from utkarsh134/JeweleryInpaintingAPI: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/utkarsh134/JeweleryInpaintingAPI/resolve/main/main.py
- Command line
-
hf download hf://spaces/utkarsh134/JeweleryInpaintingAPI/main.py
-
curl -L -o main.py https://huggingface.co/spaces/utkarsh134/JeweleryInpaintingAPI/resolve/main/main.py
639 Bytes
| import logging | |
| from fastapi import FastAPI | |
| from app.core.config import API_TITLE, API_DESCRIPTION, API_VERSION | |
| from app.api.endpoints import router | |
| # Configure logging | |
| logging.basicConfig(level=logging.INFO) | |
| logger = logging.getLogger(__name__) | |
| # Initialize FastAPI app | |
| app = FastAPI( | |
| title=API_TITLE, | |
| description=API_DESCRIPTION, | |
| version=API_VERSION | |
| ) | |
| # Include routers | |
| app.include_router(router) | |
| # if __name__ == "__main__": | |
| # import uvicorn | |
| # uvicorn.run( | |
| # "main:app", | |
| # host="0.0.0.0", | |
| # port=8000, | |
| # reload=True, | |
| # log_level="info" | |
| # ) |