We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6286c84 + 3e3cbf3 commit 5b25d12Copy full SHA for 5b25d12
src/sagemaker_huggingface_inference_toolkit/handler_service.py
@@ -107,7 +107,7 @@ def load(self, model_dir):
107
hf_pipeline = get_pipeline(task=task, model_dir=model_dir, device=self.device)
108
else:
109
raise ValueError(
110
- f"You need to define one of the following {list(SUPPORTED_TASKS.keys())} as env 'TASK'.", 403
+ f"You need to define one of the following {list(SUPPORTED_TASKS.keys())} as env 'HF_TASK'.", 403
111
)
112
return hf_pipeline
113
0 commit comments