Skip to content

Commit

Permalink
Add info on the predict_data to the quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsie011 committed Nov 23, 2023
1 parent 07ede29 commit 2d11d91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cerebrium/getting-started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ You need to define a function with the name **predict** which receives 3 params:

As long as your **main.py** contains the above you can write any other Python code. Import classes, add other functions etc.


Take note of the parameters you've defined in your `Item` class.
These are the parameters that you will pass to your model when you make an API call to your model endpoint. You can define as many parameters as you like and name them as you see fit. Just make sure to update the `predict_data` in your **config.yaml** so that you can test your model with some sample data. Otherwise, disable testing by setting `disable_predict` to `true`.


### Deploy model

Then navigate to where your model code (specifically your `main.py`) is located and run the following command:
Expand Down Expand Up @@ -79,3 +84,5 @@ Below are some links outlining some of the more advanced functionality that Cort
- [Persistent Storage](../data-sharing-storage/persistent-storage): Store model weights and files locally for faster access.
- [Long Running Tasks](../deployments/long-running-tasks): Execute long running tasks in the background.
- [Streaming](../endpoints/streaming): Stream output live back to your endpoint


0 comments on commit 2d11d91

Please sign in to comment.