Backend API for the XAVIER model
pip install -e .uv pip install -e .Start the development server:
uvicorn main:app --host 0.0.0.0 --port 8080 --reloadOnce running, access the interactive API documentation:
- Swagger UI: http://127.0.0.1:8080/docs
- ReDoc: http://127.0.0.1:8080/redoc
- Python 3.8+
- Uvicorn
- FastAPI
- Pytorch
- Torchvision
- Albumentations
- Numpy
- Pillow
- Make sure to install all dependencies before running the server.
- For production, consider using a process manager and proper server settings.
docker build --build-arg MODE=dev -t xavier-api-dev .
docker build --build-arg MODE=prod -t xavier-api .
docker run -p 8080:8080 xavier-api