Huggingface.js documentation

Namespace: python

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Namespace: python

snippets.python

Functions

getPythonInferenceSnippet

getPythonInferenceSnippet(model, accessToken, provider, providerModelId?, opts?): InferenceSnippet[]

Parameters

Name Type
model ModelDataMinimal
accessToken string
provider string
providerModelId? string
opts? Record\<string, unknown>

Returns

InferenceSnippet[]

Defined in

inference/src/snippets/python.ts:524

< > Update on GitHub