🔨 통합
허깅 얼굴 추론 엔드포인트를 사용하면 트랜스포머, 디퓨저 또는 모든 모델을 완전 관리형 전용 인프라에 쉽게 배포할 수 있습니다. 엔드포인트를 만들려면 여기를 클릭하세요.
허깅 페이스 엔드포인트 리소스를 추가하는 방법에는 두 가지가 있습니다.
속성 | 필수 | 설명 |
---|---|---|
이름 | 필수 | ILLA에 표시할 리소스 이름을 정의합니다. |
엔드포인트 URL | 필수 | create Endpoint here: https://ui.endpoints.huggingface.co/new and get the URL. |
Token | 필수 | The organization token. You can get it in https://huggingface.co/settings/tokens. |
Enter the edit page >> click + New
in the action list >> Choose Hugging Face Endpoint
>> Choose an existing resource or add a new resource
Properties | Required | Description |
---|---|---|
Parameter type | required | The parameter type of your Endpoint. For example, if your Endpoint needs an text input, choose fill in “inputs” parameter with text. If your Endpoint needs an JSON input, choose fill in “inputs” parameter with JSON or key-value. |
Parameter | required | Enter your parameter. Use {{ componentName.value }} to use data of components. |
We have deployed openai/whisper-base
which gets an audio file input and converts into text. It is suitable for meeting minutes, podcasts to text, etc. Next we will introduce how to use this model to build an application in ILLA Cloud.
We have built an interface using the components such as file upload and button, as follows.
Fill in the fields shown below to finish the resource configuration. Create an Endpoint and get the Endpoint URL. And get the organization API token in profile settings.
Select a parameter type first. Take openai/whisper-base
as an example, this model requires binary file input so we change the parameter to Binary
.
Set the binary to be passed to the model as the file data uploaded from the file upload component. For example, {{upload1.value[0]}}
Add an event handler to the button to trigger the action run when the button is clicked. And set the value of text component to {{whisper.data[0].text}} to display the convert result on text component.
After the above steps are configured, the application is created and the running results are as follows.