import{s as kt,o as Tt,n as wt}from"../chunks/scheduler.7da89386.js";import{S as Ct,i as Lt,g as o,s as t,r as l,A as Ht,h as i,f as a,c as r,j as $,u,x as d,k as v,y as n,a as s,v as h,d as m,t as _,w as b}from"../chunks/index.20910acc.js";import{T as Mt}from"../chunks/Tip.53e22153.js";import{D as y}from"../chunks/Docstring.46cd0798.js";import{C as Pt}from"../chunks/CodeBlock.cde23137.js";import{E as jt}from"../chunks/ExampleCodeBlock.7bb746b1.js";import{H as Ze}from"../chunks/Heading.4cf72777.js";function Dt(_e){let f,M='‘huggingface_hub’를 사용하여 추론 엔드포인트를 프로그래밍 방식으로 관리하는 방법을 알고 싶다면, <a href="../guides/inference_endpoints">관련 가이드</a>를 확인해 보세요.';return{c(){f=o("p"),f.innerHTML=M},l(I){f=i(I,"P",{"data-svelte-h":!0}),d(f)!=="svelte-k34n4y"&&(f.innerHTML=M)},m(I,x){s(I,f,x)},p:wt,d(I){I&&a(f)}}}function qt(_e){let f,M="Example:",I,x,w;return x=new Pt({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGdldF9pbmZlcmVuY2VfZW5kcG9pbnQlMEFlbmRwb2ludCUyMCUzRCUyMGdldF9pbmZlcmVuY2VfZW5kcG9pbnQoJTIybXktdGV4dC10by1pbWFnZSUyMiklMEFlbmRwb2ludCUwQSUwQWVuZHBvaW50LnN0YXR1cyUwQWVuZHBvaW50LnVybCUwQSUwQWVuZHBvaW50LmNsaWVudC50ZXh0X3RvX2ltYWdlKC4uLiklMEElMEFlbmRwb2ludC5wYXVzZSgpJTBBJTBBZW5kcG9pbnQucmVzdW1lKCklMEFlbmRwb2ludC53YWl0KCklMEFlbmRwb2ludC5jbGllbnQudGV4dF90b19pbWFnZSguLi4p",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> get_inference_endpoint
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint = get_inference_endpoint(<span class="hljs-string">&quot;my-text-to-image&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint
InferenceEndpoint(name=<span class="hljs-string">&#x27;my-text-to-image&#x27;</span>, ...)

<span class="hljs-comment"># Get status</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.status
<span class="hljs-string">&#x27;running&#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.url
<span class="hljs-string">&#x27;https://my-text-to-image.region.vendor.endpoints.huggingface.cloud&#x27;</span>

<span class="hljs-comment"># Run inference</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.client.text_to_image(...)

<span class="hljs-comment"># Pause endpoint to save $$$</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.pause()

<span class="hljs-comment"># ...</span>
<span class="hljs-comment"># Resume and wait for deployment</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.resume()
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.wait()
<span class="hljs-meta">&gt;&gt;&gt; </span>endpoint.client.text_to_image(...)`,wrap:!1}}),{c(){f=o("p"),f.textContent=M,I=t(),l(x.$$.fragment)},l(E){f=i(E,"P",{"data-svelte-h":!0}),d(f)!=="svelte-11lpom8"&&(f.textContent=M),I=r(E),u(x.$$.fragment,E)},m(E,H){s(E,f,H),s(E,I,H),h(x,E,H),w=!0},p:wt,i(E){w||(m(x.$$.fragment,E),w=!0)},o(E){_(x.$$.fragment,E),w=!1},d(E){E&&(a(f),a(I)),b(x,E)}}}function zt(_e){let f,M,I,x,w,E,H,Yn='Hugging Face가 관리하는 추론 엔드포인트는 우리가 모델을 쉽고 안전하게 배포할 수 있게 해주는 도구입니다. 이러한 추론 엔드포인트는 <a href="https://huggingface.co/models" rel="nofollow">Hub</a>에 있는 모델을 기반으로 설계되었습니다. 이 문서는 <code>huggingface_hub</code>와 추론 엔드포인트 통합에 관한 참조 페이지이며, 더욱 자세한 정보는 <a href="https://huggingface.co/docs/inference-endpoints/index" rel="nofollow">공식 문서</a>를 통해 확인할 수 있습니다.',Ge,V,Oe,O,Xn='추론 엔드포인트는 API로 쉽게 접근할 수 있습니다. 이 엔드포인트들은 <a href="https://api.endpoints.huggingface.cloud/" rel="nofollow">Swagger</a>를 통해 문서화되어 있고, <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint">InferenceEndpoint</a> 클래스는 이 API를 사용해 만든 간단한 래퍼입니다.',Be,B,Qe,Q,Jn="다음과 같은 추론 엔드포인트의 기능이 <code>HfApi</code>안에 구현되어 있습니다:",Ye,Y,Kn="<li><code>get_inference_endpoint()</code>와 <code>list_inference_endpoints()</code>를 사용해 엔드포인트 정보를 조회할 수 있습니다.</li> <li><code>create_inference_endpoint()</code>, <code>update_inference_endpoint()</code>, <code>delete_inference_endpoint()</code>로 엔드포인트를 배포하고 관리할 수 있습니다.</li> <li><code>pause_inference_endpoint()</code>와 <code>resume_inference_endpoint()</code>로 엔드포인트를 잠시 멈추거나 다시 시작할 수 있습니다.</li> <li><code>scale_to_zero_inference_endpoint()</code>로 엔드포인트의 복제본을 0개로 설정할 수 있습니다.</li>",Xe,X,Je,J,et='기본 데이터 클래스는 <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint">InferenceEndpoint</a>입니다. 여기에는 구성 및 현재 상태를 가지고 있는 배포된 <code>InferenceEndpoint</code>에 대한 정보가 포함되어 있습니다. 배포 후에는 <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.client">InferenceEndpoint.client</a>와 <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.async_client">InferenceEndpoint.async_client</a>를 사용해 엔드포인트에서 추론 작업을 할 수 있고, 이때 <a href="/docs/huggingface_hub/main/ko/package_reference/inference_client#huggingface_hub.InferenceClient">InferenceClient</a>와 <a href="/docs/huggingface_hub/main/ko/package_reference/inference_client#huggingface_hub.AsyncInferenceClient">AsyncInferenceClient</a> 객체를 반환합니다.',Ke,p,K,hn,be,nt="Contains information about a deployed Inference Endpoint.",mn,N,_n,A,ee,bn,Ee,tt="Initialize object from raw dictionary.",En,S,ne,In,Ie,rt="Returns a client to make predictions on this Inference Endpoint.",$n,U,te,vn,$e,at="Returns a client to make predictions on this Inference Endpoint.",xn,k,re,yn,ve,ot="Delete the Inference Endpoint.",wn,xe,it=`This operation is not reversible. If you don’t want to be charged for an Inference Endpoint, it is preferable
to pause it with <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.pause">InferenceEndpoint.pause()</a> or scale it to zero with <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.scale_to_zero">InferenceEndpoint.scale_to_zero()</a>.`,kn,ye,ct="This is an alias for <code>HfApi.delete_inference_endpoint()</code>.",Tn,W,ae,Cn,we,st="Fetch latest information about the Inference Endpoint.",Ln,T,oe,Hn,ke,pt="Pause the Inference Endpoint.",Mn,Te,dt=`A paused Inference Endpoint will not be charged. It can be resumed at any time using <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.resume">InferenceEndpoint.resume()</a>.
This is different than scaling the Inference Endpoint to zero with <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.scale_to_zero">InferenceEndpoint.scale_to_zero()</a>, which
would be automatically restarted when a request is made to it.`,Pn,Ce,gt=`This is an alias for <code>HfApi.pause_inference_endpoint()</code>. The current object is mutated in place with the
latest data from the server.`,jn,P,ie,Dn,Le,ft="Resume the Inference Endpoint.",qn,He,lt=`This is an alias for <code>HfApi.resume_inference_endpoint()</code>. The current object is mutated in place with the
latest data from the server.`,zn,C,ce,Vn,Me,ut="Scale Inference Endpoint to zero.",Nn,Pe,ht=`An Inference Endpoint scaled to zero will not be charged. It will be resume on the next request to it, with a
cold start delay. This is different than pausing the Inference Endpoint with <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.pause">InferenceEndpoint.pause()</a>, which
would require a manual resume with <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint.resume">InferenceEndpoint.resume()</a>.`,An,je,mt=`This is an alias for <code>HfApi.scale_to_zero_inference_endpoint()</code>. The current object is mutated in place with the
latest data from the server.`,Sn,L,se,Un,De,_t="Update the Inference Endpoint.",Wn,qe,bt=`This method allows the update of either the compute configuration, the deployed model, or both. All arguments are
optional but at least one must be provided.`,Rn,ze,Et=`This is an alias for <code>HfApi.update_inference_endpoint()</code>. The current object is mutated in place with the
latest data from the server.`,Zn,j,pe,Fn,Ve,It="Wait for the Inference Endpoint to be deployed.",Gn,Ne,$t=`Information from the server will be fetched every 1s. If the Inference Endpoint is not deployed after <code>timeout</code>
seconds, a <code>InferenceEndpointTimeoutError</code> will be raised. The <a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint">InferenceEndpoint</a> will be mutated in place with the latest
data.`,en,de,nn,D,ge,On,Ae,vt="An enumeration.",tn,fe,rn,q,le,Bn,Se,xt="An enumeration.",an,ue,on,z,he,Qn,Ue,yt="Generic exception when dealing with Inference Endpoints.",cn,Fe,sn;return w=new Ze({props:{title:"추론 엔드포인트",local:"inference-endpoints",headingTag:"h1"}}),V=new Mt({props:{$$slots:{default:[Dt]},$$scope:{ctx:_e}}}),B=new Ze({props:{title:"매소드",local:"methods",headingTag:"h2"}}),X=new Ze({props:{title:"InferenceEndpoint",local:"huggingface_hub.InferenceEndpoint ][ huggingface_hub.InferenceEndpoint",headingTag:"h2"}}),K=new y({props:{name:"class huggingface_hub.InferenceEndpoint",anchor:"huggingface_hub.InferenceEndpoint",parameters:[{name:"namespace",val:": str"},{name:"raw",val:": Dict"},{name:"_token",val:": Union"},{name:"_api",val:": HfApi"}],parametersDescription:[{anchor:"huggingface_hub.InferenceEndpoint.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The unique name of the Inference Endpoint.`,name:"name"},{anchor:"huggingface_hub.InferenceEndpoint.namespace",description:`<strong>namespace</strong> (<code>str</code>) &#x2014;
The namespace where the Inference Endpoint is located.`,name:"namespace"},{anchor:"huggingface_hub.InferenceEndpoint.repository",description:`<strong>repository</strong> (<code>str</code>) &#x2014;
The name of the model repository deployed on this Inference Endpoint.`,name:"repository"},{anchor:"huggingface_hub.InferenceEndpoint.status",description:`<strong>status</strong> (<a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpointStatus">InferenceEndpointStatus</a>) &#x2014;
The current status of the Inference Endpoint.`,name:"status"},{anchor:"huggingface_hub.InferenceEndpoint.url",description:`<strong>url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The URL of the Inference Endpoint, if available. Only a deployed Inference Endpoint will have a URL.`,name:"url"},{anchor:"huggingface_hub.InferenceEndpoint.framework",description:`<strong>framework</strong> (<code>str</code>) &#x2014;
The machine learning framework used for the model.`,name:"framework"},{anchor:"huggingface_hub.InferenceEndpoint.revision",description:`<strong>revision</strong> (<code>str</code>) &#x2014;
The specific model revision deployed on the Inference Endpoint.`,name:"revision"},{anchor:"huggingface_hub.InferenceEndpoint.task",description:`<strong>task</strong> (<code>str</code>) &#x2014;
The task associated with the deployed model.`,name:"task"},{anchor:"huggingface_hub.InferenceEndpoint.created_at",description:`<strong>created_at</strong> (<code>datetime.datetime</code>) &#x2014;
The timestamp when the Inference Endpoint was created.`,name:"created_at"},{anchor:"huggingface_hub.InferenceEndpoint.updated_at",description:`<strong>updated_at</strong> (<code>datetime.datetime</code>) &#x2014;
The timestamp of the last update of the Inference Endpoint.`,name:"updated_at"},{anchor:"huggingface_hub.InferenceEndpoint.type",description:`<strong>type</strong> (<a href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpointType">InferenceEndpointType</a>) &#x2014;
The type of the Inference Endpoint (public, protected, private).`,name:"type"},{anchor:"huggingface_hub.InferenceEndpoint.raw",description:`<strong>raw</strong> (<code>Dict</code>) &#x2014;
The raw dictionary data returned from the API.`,name:"raw"},{anchor:"huggingface_hub.InferenceEndpoint.token",description:`<strong>token</strong> (<code>str</code> or <code>bool</code>, <em>optional</em>) &#x2014;
Authentication token for the Inference Endpoint, if set when requesting the API. Will default to the
locally saved token if not provided. Pass <code>token=False</code> if you don&#x2019;t want to send your token to the server.`,name:"token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L38"}}),N=new jt({props:{anchor:"huggingface_hub.InferenceEndpoint.example",$$slots:{default:[qt]},$$scope:{ctx:_e}}}),ee=new y({props:{name:"from_raw",anchor:"huggingface_hub.InferenceEndpoint.from_raw",parameters:[{name:"raw",val:": Dict"},{name:"namespace",val:": str"},{name:"token",val:": Union = None"},{name:"api",val:": Optional = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L121"}}),ne=new y({props:{name:"client",anchor:"huggingface_hub.InferenceEndpoint.client",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L140",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an inference client pointing to the deployed endpoint.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_client#huggingface_hub.InferenceClient"
>InferenceClient</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpointError"
>InferenceEndpointError</a> — If the Inference Endpoint is not yet deployed.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpointError"
>InferenceEndpointError</a></p>
`}}),te=new y({props:{name:"async_client",anchor:"huggingface_hub.InferenceEndpoint.async_client",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L157",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>an asyncio-compatible inference client pointing to the deployed endpoint.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_client#huggingface_hub.AsyncInferenceClient"
>AsyncInferenceClient</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpointError"
>InferenceEndpointError</a> — If the Inference Endpoint is not yet deployed.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpointError"
>InferenceEndpointError</a></p>
`}}),re=new y({props:{name:"delete",anchor:"huggingface_hub.InferenceEndpoint.delete",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L350"}}),ae=new y({props:{name:"fetch",anchor:"huggingface_hub.InferenceEndpoint.fetch",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L221",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the same Inference Endpoint, mutated in place with the latest data.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),oe=new y({props:{name:"pause",anchor:"huggingface_hub.InferenceEndpoint.pause",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L300",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the same Inference Endpoint, mutated in place with the latest data.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),ie=new y({props:{name:"resume",anchor:"huggingface_hub.InferenceEndpoint.resume",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L318",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the same Inference Endpoint, mutated in place with the latest data.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),ce=new y({props:{name:"scale_to_zero",anchor:"huggingface_hub.InferenceEndpoint.scale_to_zero",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L332",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the same Inference Endpoint, mutated in place with the latest data.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),se=new y({props:{name:"update",anchor:"huggingface_hub.InferenceEndpoint.update",parameters:[{name:"accelerator",val:": Optional = None"},{name:"instance_size",val:": Optional = None"},{name:"instance_type",val:": Optional = None"},{name:"min_replica",val:": Optional = None"},{name:"max_replica",val:": Optional = None"},{name:"repository",val:": Optional = None"},{name:"framework",val:": Optional = None"},{name:"revision",val:": Optional = None"},{name:"task",val:": Optional = None"}],parametersDescription:[{anchor:"huggingface_hub.InferenceEndpoint.update.accelerator",description:`<strong>accelerator</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The hardware accelerator to be used for inference (e.g. <code>&quot;cpu&quot;</code>).`,name:"accelerator"},{anchor:"huggingface_hub.InferenceEndpoint.update.instance_size",description:`<strong>instance_size</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The size or type of the instance to be used for hosting the model (e.g. <code>&quot;large&quot;</code>).`,name:"instance_size"},{anchor:"huggingface_hub.InferenceEndpoint.update.instance_type",description:`<strong>instance_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The cloud instance type where the Inference Endpoint will be deployed (e.g. <code>&quot;c6i&quot;</code>).`,name:"instance_type"},{anchor:"huggingface_hub.InferenceEndpoint.update.min_replica",description:`<strong>min_replica</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The minimum number of replicas (instances) to keep running for the Inference Endpoint.`,name:"min_replica"},{anchor:"huggingface_hub.InferenceEndpoint.update.max_replica",description:`<strong>max_replica</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum number of replicas (instances) to scale to for the Inference Endpoint.`,name:"max_replica"},{anchor:"huggingface_hub.InferenceEndpoint.update.repository",description:`<strong>repository</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the model repository associated with the Inference Endpoint (e.g. <code>&quot;gpt2&quot;</code>).`,name:"repository"},{anchor:"huggingface_hub.InferenceEndpoint.update.framework",description:`<strong>framework</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The machine learning framework used for the model (e.g. <code>&quot;custom&quot;</code>).`,name:"framework"},{anchor:"huggingface_hub.InferenceEndpoint.update.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific model revision to deploy on the Inference Endpoint (e.g. <code>&quot;6c0e6080953db56375760c0471a8c5f2929baf11&quot;</code>).`,name:"revision"},{anchor:"huggingface_hub.InferenceEndpoint.update.task",description:`<strong>task</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The task on which to deploy the model (e.g. <code>&quot;text-classification&quot;</code>).`,name:"task"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L232",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the same Inference Endpoint, mutated in place with the latest data.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`}}),pe=new y({props:{name:"wait",anchor:"huggingface_hub.InferenceEndpoint.wait",parameters:[{name:"timeout",val:": Optional = None"},{name:"refresh_every",val:": int = 5"}],parametersDescription:[{anchor:"huggingface_hub.InferenceEndpoint.wait.timeout",description:`<strong>timeout</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The maximum time to wait for the Inference Endpoint to be deployed, in seconds. If <code>None</code>, will wait
indefinitely.`,name:"timeout"},{anchor:"huggingface_hub.InferenceEndpoint.wait.refresh_every",description:`<strong>refresh_every</strong> (<code>int</code>, <em>optional</em>) &#x2014;
The time to wait between each fetch of the Inference Endpoint status, in seconds. Defaults to 5s.`,name:"refresh_every"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L174",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the same Inference Endpoint, mutated in place with the latest data.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpoint"
>InferenceEndpoint</a></p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpointError"
>InferenceEndpointError</a> —
If the Inference Endpoint ended up in a failed state.</li>
<li><code>InferenceEndpointTimeoutError</code> —
If the Inference Endpoint is not deployed after <code>timeout</code> seconds.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/ko/package_reference/inference_endpoints#huggingface_hub.InferenceEndpointError"
>InferenceEndpointError</a> or <code>InferenceEndpointTimeoutError</code></p>
`}}),de=new Ze({props:{title:"InferenceEndpointStatus",local:"huggingface_hub.InferenceEndpointStatus ][ huggingface_hub.InferenceEndpointStatus",headingTag:"h2"}}),ge=new y({props:{name:"class huggingface_hub.InferenceEndpointStatus",anchor:"huggingface_hub.InferenceEndpointStatus",parameters:[{name:"value",val:""},{name:"names",val:" = None"},{name:"module",val:" = None"},{name:"qualname",val:" = None"},{name:"type",val:" = None"},{name:"start",val:" = 1"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L21"}}),fe=new Ze({props:{title:"InferenceEndpointType",local:"huggingface_hub.InferenceEndpointType ][ huggingface_hub.InferenceEndpointType",headingTag:"h2"}}),le=new y({props:{name:"class huggingface_hub.InferenceEndpointType",anchor:"huggingface_hub.InferenceEndpointType",parameters:[{name:"value",val:""},{name:"names",val:" = None"},{name:"module",val:" = None"},{name:"qualname",val:" = None"},{name:"type",val:" = None"},{name:"start",val:" = 1"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/_inference_endpoints.py#L32"}}),ue=new Ze({props:{title:"InferenceEndpointError",local:"huggingface_hub.InferenceEndpointError ][ huggingface_hub.InferenceEndpointError",headingTag:"h2"}}),he=new y({props:{name:"class huggingface_hub.InferenceEndpointError",anchor:"huggingface_hub.InferenceEndpointError",parameters:"",source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/errors.py#L30"}}),{c(){f=o("meta"),M=t(),I=o("p"),x=t(),l(w.$$.fragment),E=t(),H=o("p"),H.innerHTML=Yn,Ge=t(),l(V.$$.fragment),Oe=t(),O=o("p"),O.innerHTML=Xn,Be=t(),l(B.$$.fragment),Qe=t(),Q=o("p"),Q.innerHTML=Jn,Ye=t(),Y=o("ul"),Y.innerHTML=Kn,Xe=t(),l(X.$$.fragment),Je=t(),J=o("p"),J.innerHTML=et,Ke=t(),p=o("div"),l(K.$$.fragment),hn=t(),be=o("p"),be.textContent=nt,mn=t(),l(N.$$.fragment),_n=t(),A=o("div"),l(ee.$$.fragment),bn=t(),Ee=o("p"),Ee.textContent=tt,En=t(),S=o("div"),l(ne.$$.fragment),In=t(),Ie=o("p"),Ie.textContent=rt,$n=t(),U=o("div"),l(te.$$.fragment),vn=t(),$e=o("p"),$e.textContent=at,xn=t(),k=o("div"),l(re.$$.fragment),yn=t(),ve=o("p"),ve.textContent=ot,wn=t(),xe=o("p"),xe.innerHTML=it,kn=t(),ye=o("p"),ye.innerHTML=ct,Tn=t(),W=o("div"),l(ae.$$.fragment),Cn=t(),we=o("p"),we.textContent=st,Ln=t(),T=o("div"),l(oe.$$.fragment),Hn=t(),ke=o("p"),ke.textContent=pt,Mn=t(),Te=o("p"),Te.innerHTML=dt,Pn=t(),Ce=o("p"),Ce.innerHTML=gt,jn=t(),P=o("div"),l(ie.$$.fragment),Dn=t(),Le=o("p"),Le.textContent=ft,qn=t(),He=o("p"),He.innerHTML=lt,zn=t(),C=o("div"),l(ce.$$.fragment),Vn=t(),Me=o("p"),Me.textContent=ut,Nn=t(),Pe=o("p"),Pe.innerHTML=ht,An=t(),je=o("p"),je.innerHTML=mt,Sn=t(),L=o("div"),l(se.$$.fragment),Un=t(),De=o("p"),De.textContent=_t,Wn=t(),qe=o("p"),qe.textContent=bt,Rn=t(),ze=o("p"),ze.innerHTML=Et,Zn=t(),j=o("div"),l(pe.$$.fragment),Fn=t(),Ve=o("p"),Ve.textContent=It,Gn=t(),Ne=o("p"),Ne.innerHTML=$t,en=t(),l(de.$$.fragment),nn=t(),D=o("div"),l(ge.$$.fragment),On=t(),Ae=o("p"),Ae.textContent=vt,tn=t(),l(fe.$$.fragment),rn=t(),q=o("div"),l(le.$$.fragment),Bn=t(),Se=o("p"),Se.textContent=xt,an=t(),l(ue.$$.fragment),on=t(),z=o("div"),l(he.$$.fragment),Qn=t(),Ue=o("p"),Ue.textContent=yt,cn=t(),Fe=o("p"),this.h()},l(e){const c=Ht("svelte-u9bgzb",document.head);f=i(c,"META",{name:!0,content:!0}),c.forEach(a),M=r(e),I=i(e,"P",{}),$(I).forEach(a),x=r(e),u(w.$$.fragment,e),E=r(e),H=i(e,"P",{"data-svelte-h":!0}),d(H)!=="svelte-15613l9"&&(H.innerHTML=Yn),Ge=r(e),u(V.$$.fragment,e),Oe=r(e),O=i(e,"P",{"data-svelte-h":!0}),d(O)!=="svelte-j8zouw"&&(O.innerHTML=Xn),Be=r(e),u(B.$$.fragment,e),Qe=r(e),Q=i(e,"P",{"data-svelte-h":!0}),d(Q)!=="svelte-w6tqeg"&&(Q.innerHTML=Jn),Ye=r(e),Y=i(e,"UL",{"data-svelte-h":!0}),d(Y)!=="svelte-m44g8y"&&(Y.innerHTML=Kn),Xe=r(e),u(X.$$.fragment,e),Je=r(e),J=i(e,"P",{"data-svelte-h":!0}),d(J)!=="svelte-12eu3yu"&&(J.innerHTML=et),Ke=r(e),p=i(e,"DIV",{class:!0});var g=$(p);u(K.$$.fragment,g),hn=r(g),be=i(g,"P",{"data-svelte-h":!0}),d(be)!=="svelte-1bmjqnv"&&(be.textContent=nt),mn=r(g),u(N.$$.fragment,g),_n=r(g),A=i(g,"DIV",{class:!0});var me=$(A);u(ee.$$.fragment,me),bn=r(me),Ee=i(me,"P",{"data-svelte-h":!0}),d(Ee)!=="svelte-gljdbx"&&(Ee.textContent=tt),me.forEach(a),En=r(g),S=i(g,"DIV",{class:!0});var pn=$(S);u(ne.$$.fragment,pn),In=r(pn),Ie=i(pn,"P",{"data-svelte-h":!0}),d(Ie)!=="svelte-jw5rtn"&&(Ie.textContent=rt),pn.forEach(a),$n=r(g),U=i(g,"DIV",{class:!0});var dn=$(U);u(te.$$.fragment,dn),vn=r(dn),$e=i(dn,"P",{"data-svelte-h":!0}),d($e)!=="svelte-jw5rtn"&&($e.textContent=at),dn.forEach(a),xn=r(g),k=i(g,"DIV",{class:!0});var R=$(k);u(re.$$.fragment,R),yn=r(R),ve=i(R,"P",{"data-svelte-h":!0}),d(ve)!=="svelte-1awp4uu"&&(ve.textContent=ot),wn=r(R),xe=i(R,"P",{"data-svelte-h":!0}),d(xe)!=="svelte-o1r3qx"&&(xe.innerHTML=it),kn=r(R),ye=i(R,"P",{"data-svelte-h":!0}),d(ye)!=="svelte-9v4i97"&&(ye.innerHTML=ct),R.forEach(a),Tn=r(g),W=i(g,"DIV",{class:!0});var gn=$(W);u(ae.$$.fragment,gn),Cn=r(gn),we=i(gn,"P",{"data-svelte-h":!0}),d(we)!=="svelte-1dh96nb"&&(we.textContent=st),gn.forEach(a),Ln=r(g),T=i(g,"DIV",{class:!0});var Z=$(T);u(oe.$$.fragment,Z),Hn=r(Z),ke=i(Z,"P",{"data-svelte-h":!0}),d(ke)!=="svelte-1bfttgz"&&(ke.textContent=pt),Mn=r(Z),Te=i(Z,"P",{"data-svelte-h":!0}),d(Te)!=="svelte-1v3hz5g"&&(Te.innerHTML=dt),Pn=r(Z),Ce=i(Z,"P",{"data-svelte-h":!0}),d(Ce)!=="svelte-1si3zf9"&&(Ce.innerHTML=gt),Z.forEach(a),jn=r(g),P=i(g,"DIV",{class:!0});var We=$(P);u(ie.$$.fragment,We),Dn=r(We),Le=i(We,"P",{"data-svelte-h":!0}),d(Le)!=="svelte-akp3j2"&&(Le.textContent=ft),qn=r(We),He=i(We,"P",{"data-svelte-h":!0}),d(He)!=="svelte-15iptw"&&(He.innerHTML=lt),We.forEach(a),zn=r(g),C=i(g,"DIV",{class:!0});var F=$(C);u(ce.$$.fragment,F),Vn=r(F),Me=i(F,"P",{"data-svelte-h":!0}),d(Me)!=="svelte-6vx93v"&&(Me.textContent=ut),Nn=r(F),Pe=i(F,"P",{"data-svelte-h":!0}),d(Pe)!=="svelte-7gu2ky"&&(Pe.innerHTML=ht),An=r(F),je=i(F,"P",{"data-svelte-h":!0}),d(je)!=="svelte-1vn03ds"&&(je.innerHTML=mt),F.forEach(a),Sn=r(g),L=i(g,"DIV",{class:!0});var G=$(L);u(se.$$.fragment,G),Un=r(G),De=i(G,"P",{"data-svelte-h":!0}),d(De)!=="svelte-16hllis"&&(De.textContent=_t),Wn=r(G),qe=i(G,"P",{"data-svelte-h":!0}),d(qe)!=="svelte-llxqqu"&&(qe.textContent=bt),Rn=r(G),ze=i(G,"P",{"data-svelte-h":!0}),d(ze)!=="svelte-10614b6"&&(ze.innerHTML=Et),G.forEach(a),Zn=r(g),j=i(g,"DIV",{class:!0});var Re=$(j);u(pe.$$.fragment,Re),Fn=r(Re),Ve=i(Re,"P",{"data-svelte-h":!0}),d(Ve)!=="svelte-15saqtl"&&(Ve.textContent=It),Gn=r(Re),Ne=i(Re,"P",{"data-svelte-h":!0}),d(Ne)!=="svelte-14ssp4z"&&(Ne.innerHTML=$t),Re.forEach(a),g.forEach(a),en=r(e),u(de.$$.fragment,e),nn=r(e),D=i(e,"DIV",{class:!0});var fn=$(D);u(ge.$$.fragment,fn),On=r(fn),Ae=i(fn,"P",{"data-svelte-h":!0}),d(Ae)!=="svelte-ofujqi"&&(Ae.textContent=vt),fn.forEach(a),tn=r(e),u(fe.$$.fragment,e),rn=r(e),q=i(e,"DIV",{class:!0});var ln=$(q);u(le.$$.fragment,ln),Bn=r(ln),Se=i(ln,"P",{"data-svelte-h":!0}),d(Se)!=="svelte-ofujqi"&&(Se.textContent=xt),ln.forEach(a),an=r(e),u(ue.$$.fragment,e),on=r(e),z=i(e,"DIV",{class:!0});var un=$(z);u(he.$$.fragment,un),Qn=r(un),Ue=i(un,"P",{"data-svelte-h":!0}),d(Ue)!=="svelte-dy4pdd"&&(Ue.textContent=yt),un.forEach(a),cn=r(e),Fe=i(e,"P",{}),$(Fe).forEach(a),this.h()},h(){v(f,"name","hf:doc:metadata"),v(f,"content",Vt),v(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(p,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,c){n(document.head,f),s(e,M,c),s(e,I,c),s(e,x,c),h(w,e,c),s(e,E,c),s(e,H,c),s(e,Ge,c),h(V,e,c),s(e,Oe,c),s(e,O,c),s(e,Be,c),h(B,e,c),s(e,Qe,c),s(e,Q,c),s(e,Ye,c),s(e,Y,c),s(e,Xe,c),h(X,e,c),s(e,Je,c),s(e,J,c),s(e,Ke,c),s(e,p,c),h(K,p,null),n(p,hn),n(p,be),n(p,mn),h(N,p,null),n(p,_n),n(p,A),h(ee,A,null),n(A,bn),n(A,Ee),n(p,En),n(p,S),h(ne,S,null),n(S,In),n(S,Ie),n(p,$n),n(p,U),h(te,U,null),n(U,vn),n(U,$e),n(p,xn),n(p,k),h(re,k,null),n(k,yn),n(k,ve),n(k,wn),n(k,xe),n(k,kn),n(k,ye),n(p,Tn),n(p,W),h(ae,W,null),n(W,Cn),n(W,we),n(p,Ln),n(p,T),h(oe,T,null),n(T,Hn),n(T,ke),n(T,Mn),n(T,Te),n(T,Pn),n(T,Ce),n(p,jn),n(p,P),h(ie,P,null),n(P,Dn),n(P,Le),n(P,qn),n(P,He),n(p,zn),n(p,C),h(ce,C,null),n(C,Vn),n(C,Me),n(C,Nn),n(C,Pe),n(C,An),n(C,je),n(p,Sn),n(p,L),h(se,L,null),n(L,Un),n(L,De),n(L,Wn),n(L,qe),n(L,Rn),n(L,ze),n(p,Zn),n(p,j),h(pe,j,null),n(j,Fn),n(j,Ve),n(j,Gn),n(j,Ne),s(e,en,c),h(de,e,c),s(e,nn,c),s(e,D,c),h(ge,D,null),n(D,On),n(D,Ae),s(e,tn,c),h(fe,e,c),s(e,rn,c),s(e,q,c),h(le,q,null),n(q,Bn),n(q,Se),s(e,an,c),h(ue,e,c),s(e,on,c),s(e,z,c),h(he,z,null),n(z,Qn),n(z,Ue),s(e,cn,c),s(e,Fe,c),sn=!0},p(e,[c]){const g={};c&2&&(g.$$scope={dirty:c,ctx:e}),V.$set(g);const me={};c&2&&(me.$$scope={dirty:c,ctx:e}),N.$set(me)},i(e){sn||(m(w.$$.fragment,e),m(V.$$.fragment,e),m(B.$$.fragment,e),m(X.$$.fragment,e),m(K.$$.fragment,e),m(N.$$.fragment,e),m(ee.$$.fragment,e),m(ne.$$.fragment,e),m(te.$$.fragment,e),m(re.$$.fragment,e),m(ae.$$.fragment,e),m(oe.$$.fragment,e),m(ie.$$.fragment,e),m(ce.$$.fragment,e),m(se.$$.fragment,e),m(pe.$$.fragment,e),m(de.$$.fragment,e),m(ge.$$.fragment,e),m(fe.$$.fragment,e),m(le.$$.fragment,e),m(ue.$$.fragment,e),m(he.$$.fragment,e),sn=!0)},o(e){_(w.$$.fragment,e),_(V.$$.fragment,e),_(B.$$.fragment,e),_(X.$$.fragment,e),_(K.$$.fragment,e),_(N.$$.fragment,e),_(ee.$$.fragment,e),_(ne.$$.fragment,e),_(te.$$.fragment,e),_(re.$$.fragment,e),_(ae.$$.fragment,e),_(oe.$$.fragment,e),_(ie.$$.fragment,e),_(ce.$$.fragment,e),_(se.$$.fragment,e),_(pe.$$.fragment,e),_(de.$$.fragment,e),_(ge.$$.fragment,e),_(fe.$$.fragment,e),_(le.$$.fragment,e),_(ue.$$.fragment,e),_(he.$$.fragment,e),sn=!1},d(e){e&&(a(M),a(I),a(x),a(E),a(H),a(Ge),a(Oe),a(O),a(Be),a(Qe),a(Q),a(Ye),a(Y),a(Xe),a(Je),a(J),a(Ke),a(p),a(en),a(nn),a(D),a(tn),a(rn),a(q),a(an),a(on),a(z),a(cn),a(Fe)),a(f),b(w,e),b(V,e),b(B,e),b(X,e),b(K),b(N),b(ee),b(ne),b(te),b(re),b(ae),b(oe),b(ie),b(ce),b(se),b(pe),b(de,e),b(ge),b(fe,e),b(le),b(ue,e),b(he)}}}const Vt='{"title":"추론 엔드포인트","local":"inference-endpoints","sections":[{"title":"매소드","local":"methods","sections":[],"depth":2},{"title":"InferenceEndpoint","local":"huggingface_hub.InferenceEndpoint ][ huggingface_hub.InferenceEndpoint","sections":[],"depth":2},{"title":"InferenceEndpointStatus","local":"huggingface_hub.InferenceEndpointStatus ][ huggingface_hub.InferenceEndpointStatus","sections":[],"depth":2},{"title":"InferenceEndpointType","local":"huggingface_hub.InferenceEndpointType ][ huggingface_hub.InferenceEndpointType","sections":[],"depth":2},{"title":"InferenceEndpointError","local":"huggingface_hub.InferenceEndpointError ][ huggingface_hub.InferenceEndpointError","sections":[],"depth":2}],"depth":1}';function Nt(_e){return Tt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Gt extends Ct{constructor(f){super(),Lt(this,f,Nt,zt,kt,{})}}export{Gt as component};
