// This file is autogenerated, DO NOT EDIT
// inference/service-hugging-face.asciidoc:107

[source, python]
----
resp = client.inference.put(
    task_type="text_embedding",
    inference_id="hugging-face-embeddings",
    inference_config={
        "service": "hugging_face",
        "service_settings": {
            "api_key": "<access_token>",
            "url": "<url_endpoint>"
        }
    },
)
print(resp)
----
