Fast API
You can deploy via Fast API in Zerve
Code
All your code will be in the Zerve notebook. It will have all variables/objects you want to refer in your deployment.
FastAPI code
In deployment you will see a generic example script that you can modify as per your requirment. To call a variable from the notebook you can use the following code
from zerve import variable
name = variable ("block_name", "variable_name")Packages
There is a default FastAPI environment set in Zerve that can be used here, but if you need additional packages for deployment, you can clone the FastAPI environment and add required packages to it and build.
Instance Type
You can select any instance type as per your requirement
Preview
You can see a preview in Zerve before you deploy. This can be used to fix bugs and deploy a clean code.
Logs
There are also logs available to help you debug better.
Example flow
Following video shows how to deploy a churn model using Fast API in Zerve. In this example we need scikit-learn package, so we will see all steps from creating a new environment until deployment.
Last updated

