commands.transpile
module commands.transpile
commands.transpile
Global Variables
API_HOST
function transpile
transpile
Command to transpile the model using the client. Sends the model and then unzips it to the desired location.
This command will do a couple of things behind the scenes: * Create a Model entity * Upload the model * Update the status of the model * Poll the model until the status is either FAILED or COMPLETED * If COMPLETED the model is downloaded
Args:
model_path
(str): path for the model to loadoutput_path
(str): ouput to store the transpiled model. Defaults to "cairo_model".debug
(Optional[bool], optional): Whether to add debug information, will show requests, extra logs and traceback if there is an Exception. Defaults to DEBUG_OPTION(False).
Raises:
BadZipFile
: if the received file is not a zip, could be due to a transpilation error at the API.HTTPError
: request error to the API, 4XX or 5XX
Last updated