Create endpoint
create(args)
Create custom endpoint with TruServeClient.
serve.create(
alias ="my_custom_endpoint",
title="MyEndpoint",
instance_type=InstanceType.Medium,
instance_count=1,
script_path="customEndpoint/model_v1.py",
requirements_path="customEndpoint/requirements.txt",
description="My first custom endpoint",
local_file=False
)
Parameters
Param | Type | Description | Required |
---|---|---|---|
alias | str | Unique value to identify endpoint | True |
title | str | Title of endpoint | True |
instance_type | Instance Type | Type of the Instance | True |
instance_count | int | Number of the Instances | True |
script_path | str | Python script | True |
requirements_path | str | Text file with needed requirements | False |
description | str | Description for endpoint | False |
local_file | bool | It means you are uploading Script and Requirements Path locally, or False if you want to get them from TruStorage | False, default True |