diff --git a/examples/classification/assembly/index.ts b/examples/classification/assembly/index.ts index daaafaff..d642366e 100644 --- a/examples/classification/assembly/index.ts +++ b/examples/classification/assembly/index.ts @@ -44,11 +44,7 @@ function getLabels(prediction: ClassifierResult): Map { return labels; } -// This function is similar to the previous, but allows multiple items to be -// classified at a time. Note that it might be nicer to have passed in a -// Map instead of two arrays. However, that is not yet -// supported in Hypermode. This example may be updated in the future when -// that is supported. +// This function is similar to the previous, but allows multiple items to be classified at a time. export function getMultipleClassificationLabels( ids: string[], texts: string[], diff --git a/examples/classification/hypermode.json b/examples/classification/hypermode.json index 4ac30787..44aa56ed 100644 --- a/examples/classification/hypermode.json +++ b/examples/classification/hypermode.json @@ -6,21 +6,6 @@ "sourceModel": "distilbert/distilbert-base-uncased", "host": "hypermode", "provider": "hugging-face" - }, - // This defines a custom model that is hosted on AWS, at the host specified below. - "my-custom-classifier": { - "sourceModel": "distilbert-base-uncased", - "host": "aws-classifier" - } - }, - "hosts": { - // This defines a host that is used by the custom model above. - // The {{API_KEY}} will be replaced by the secret provided in the Hypermode Console. - "aws-classifier": { - "endpoint": "https://nerpndlnl6.execute-api.us-east-1.amazonaws.com/dev/classifier", - "headers": { - "X-API-Key": "{{API_KEY}}" - } } } }