Fix spacing (#863)

This commit is contained in:
pollfly 2024-06-30 16:49:19 +03:00 committed by GitHub
parent a7371aebee
commit d8963d2ea5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,19 +177,23 @@ endpoint `/test_model_sklearn/3/`.
Example:
1. Add two endpoints:
```bash
clearml-serving --id <service_id> model add --engine sklearn --endpoint "test_model_sklearn" --preprocess "examples/sklearn/preprocess.py" --name "train sklearn model" --version 1 --project "serving examples"
```
```bash
clearml-serving --id <service_id> model add --engine sklearn --endpoint "test_model_sklearn" --preprocess "examples/sklearn/preprocess.py" --name "train sklearn model" --version 2 --project "serving examples"
```
1. Add Canary endpoint:
```bash
clearml-serving --id <service_id> model canary --endpoint "test_model_sklearn_canary" --weights 0.1 0.9 --input-endpoints test_model_sklearn/2 test_model_sklearn/1
```
1. Test Canary endpoint:
```bash
curl -X POST "http://127.0.0.1:8080/serve/test_model" -H "accept: application/json" -H "Content-Type: application/json" -d '{"x0": 1, "x1": 2}'`
```