Skip to content

Commit

Permalink
DOCS-1131: Include type for ML model package json example (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Oct 3, 2023
1 parent 58fa1bc commit 170d5c1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/services/ml/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Add the `tflite_cpu` ML model object to the services array in your raw JSON conf
"type": "mlmodel",
"model": "tflite_cpu",
"attributes": {
"model_path": "${packages.<model-name>}/<model-name>.tflite",
"label_path": "${packages.<model-name>}/labels.txt",
"model_path": "${packages.ml_model.<model_name>}/<model-name>.tflite",
"label_path": "${packages.ml_model.<model_name>}/labels.txt",
"num_threads": <number>
}
},
Expand All @@ -77,8 +77,8 @@ Add the `tflite_cpu` ML model object to the services array in your raw JSON conf
"type": "mlmodel",
"model": "tflite_cpu",
"attributes": {
"model_path": "${packages.<model-name>}/<model-name>.tflite",
"label_path": "${packages.<model-name>}/labels.txt",
"model_path": "${packages.ml_model.my_fruit_model}/my_fruit_model.tflite",
"label_path": "${packages.ml_model.my_fruit_model}/labels.txt",
"num_threads": 1
}
}
Expand Down Expand Up @@ -111,7 +111,8 @@ The model package config looks like this:
{
"package": "<model_id>/allblack",
"version": "YYYYMMDDHHMMSS",
"name": "<model_name>"
"name": "<model_name>",
"type": "ml_model"
}
```

Expand Down

0 comments on commit 170d5c1

Please sign in to comment.