import{s as Bs,n as Os,o as qs}from"../chunks/scheduler.6062bdaf.js";import{S as zs,i as Ds,g as p,s as e,r as m,A as xs,h as c,f as t,c as n,j as H,u as i,x as U,k as Ys,y as o,a,v as M,d as y,t as r,w as h}from"../chunks/index.4bca734e.js";import{C as z}from"../chunks/CodeBlock.fa01571c.js";import{H as Qs,E as Ws}from"../chunks/EditOnGithub.74ab2baa.js";function Ls(ks){let J,W,D,L,g,P,u,bs='<code>huggingface_hub</code> 라이브러리는 <a href="/docs/huggingface_hub/v0.23.0/ko/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a> 외에도 Hugging Face Hub에 대한 파이써닉한 <a href="https://filesystem-spec.readthedocs.io/en/latest/" rel="nofollow">fsspec-compatible</a> 파일 인터페이스인 <code>HfFileSystem</code>을 제공합니다. <code>HfFileSystem</code>은 <a href="/docs/huggingface_hub/v0.23.0/ko/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a>을 기반으로 구축되며, <code>cp</code>, <code>mv</code>, <code>ls</code>, <code>du</code>, <code>glob</code>, <code>get_file</code> 및 <code>put_file</code>과 같은 일반적인 파일 시스템 스타일 작업을 제공합니다.',K,T,ss,j,ls,f,Is="선택적 <code>revision</code> 인수를 전달하여 브랜치, 태그 이름 또는 커밋 해시와 같은 특정 커밋에서 작업을 실행할 수 있습니다.",ts,Q,Fs="파이썬에 내장된 <code>open</code>과 달리 <code>fsspec</code>의 <code>open</code>은 바이너리 모드 <code>&quot;rb&quot;</code>로 기본 설정됩니다. 이것은 텍스트 모드에서 읽기 위해 <code>&quot;r&quot;</code>, 쓰기 위해 <code>&quot;w&quot;</code>로 모드를 명시적으로 설정해야 함을 의미합니다. 파일에 추가하기(모드 <code>&quot;a&quot;</code> 및 <code>&quot;ab&quot;</code>)는 아직 지원되지 않습니다.",as,C,es,w,Zs="<code>HfFileSystem</code>은 URL이 다음 구문을 따르는 경우 <code>fsspec</code>을 통합하는 모든 라이브러리에서 사용할 수 있습니다.",ns,V,ps,R,Es="여기서 <code>repo_type_prefix</code>는 Datasets의 경우 <code>datasets/</code>, Spaces의 경우 <code>spaces/</code>이며, 모델에는 URL에 접두사가 필요하지 않습니다.",cs,k,Gs="<code>HfFileSystem</code>이 Hub와의 상호작용을 단순화하는 몇 가지 흥미로운 통합 사례는 다음과 같습니다:",Us,Y,b,B,$s='Hub 저장소에서 <a href="https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html#reading-writing-remote-files" rel="nofollow">Pandas</a> DataFrame 읽기/쓰기:',Cs,I,ms,F,Ss='동일한 워크플로우를 <a href="https://docs.dask.org/en/stable/how-to/connect-to-remote-data.html" rel="nofollow">Dask</a> 및 <a href="https://pola-rs.github.io/polars/py-polars/html/reference/io.html" rel="nofollow">Polars</a> DataFrame에도 사용할 수 있습니다.',is,d,Z,O,vs='<a href="https://duckdb.org/docs/guides/python/filesystems" rel="nofollow">DuckDB</a>를 사용하여 (원격) Hub 파일 쿼리:',ws,E,Vs,G,q,Xs='<a href="https://zarr.readthedocs.io/en/stable/tutorial.html#io-with-fsspec" rel="nofollow">Zarr</a>를 사용하여 Hub를 배열 저장소로 사용:',Rs,$,os,S,Ms,v,_s='대부분의 경우 Hub와 상호작용하려면 Hugging Face 계정에 로그인해야 합니다. Hub에서 인증 방법에 대해 자세히 알아보려면 문서의 <a href="../quick-start#authentication">인증</a> 섹션을 참조하세요.',ys,X,Ns="또한 <code>HfFileSystem</code>에 <code>token</code>을 인수로 전달하여 프로그래밍 방식으로 로그인할 수 있습니다:",rs,_,hs,N,As="이렇게 로그인하는 경우 소스 코드를 공유할 때 토큰이 실수로 누출되지 않도록 주의해야 합니다!",Js,A,ds,x,gs;return g=new Qs({props:{title:"Hugging Face Hub에서 파일 시스템 API를 통해 상호작용하기",local:"interact-with-the-hub-through-the-filesystem-api",headingTag:"h1"}}),T=new Qs({props:{title:"사용법",local:"usage",headingTag:"h2"}}),j=new z({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmRmlsZVN5c3RlbSUwQWZzJTIwJTNEJTIwSGZGaWxlU3lzdGVtKCklMEElMEElMjMlMjAlRUIlOTQlOTQlRUIlQTAlODklRUQlODQlQjAlRUIlQTYlQUMlRUMlOUQlOTglMjAlRUIlQUElQTglRUIlOTMlQTAlMjAlRUQlOEMlOEMlRUMlOUQlQkMlMjAlRUIlODIlOTglRUMlOTclQjQlRUQlOTUlOTglRUElQjglQjAlMEFmcy5scyglMjJkYXRhc2V0cyUyRm15LXVzZXJuYW1lJTJGbXktZGF0YXNldC1yZXBvJTJGZGF0YSUyMiUyQyUyMGRldGFpbCUzREZhbHNlKSUwQSUwQSUyMyUyMCVFQyVBMCU4MCVFQyU5RSVBNSVFQyU4NiU4QyhyZXBvKSVFQyU5NyU5MCVFQyU4NCU5QyUyMCUyMi5jc3YlMjIlMjAlRUQlOEMlOEMlRUMlOUQlQkMlMjAlRUIlQUElQTglRUIlOTElOTAlMjAlRUIlODIlOTglRUMlOTclQjQlRUQlOTUlOTglRUElQjglQjAlMEFmcy5nbG9iKCUyMmRhdGFzZXRzJTJGbXktdXNlcm5hbWUlMkZteS1kYXRhc2V0LXJlcG8lMkYqKi5jc3YlMjIpJTBBJTBBJTIzJTIwJUVDJTlCJTkwJUVBJUIyJUE5JTIwJUVEJThDJThDJUVDJTlEJUJDJTIwJUVDJTlEJUJEJUVBJUI4JUIwJTBBd2l0aCUyMGZzLm9wZW4oJTIyZGF0YXNldHMlMkZteS11c2VybmFtZSUyRm15LWRhdGFzZXQtcmVwbyUyRmRhdGElMkZ0cmFpbi5jc3YlMjIlMkMlMjAlMjJyJTIyKSUyMGFzJTIwZiUzQSUwQSUyMCUyMCUyMCUyMHRyYWluX2RhdGElMjAlM0QlMjBmLnJlYWRsaW5lcygpJTBBJTBBJTIzJTIwJUVCJUFDJUI4JUVDJTlFJTkwJUVDJTk3JUI0JUVCJUExJTlDJTIwJUVDJTlCJTkwJUVBJUIyJUE5JTIwJUVEJThDJThDJUVDJTlEJUJDJUVDJTlEJTk4JTIwJUVCJTgyJUI0JUVDJTlBJUE5JTIwJUVDJTlEJUJEJUVBJUI4JUIwJTBBdHJhaW5fZGF0YSUyMCUzRCUyMGZzLnJlYWRfdGV4dCglMjJkYXRhc2V0cyUyRm15LXVzZXJuYW1lJTJGbXktZGF0YXNldC1yZXBvJTJGZGF0YSUyRnRyYWluLmNzdiUyMiUyQyUyMHJldmlzaW9uJTNEJTIyZGV2JTIyKSUwQSUwQSUyMyUyMCVFQyU5QiU5MCVFQSVCMiVBOSUyMCVFRCU4QyU4QyVFQyU5RCVCQyUyMCVFQyU5MyVCMCVFQSVCOCVCMCUwQXdpdGglMjBmcy5vcGVuKCUyMmRhdGFzZXRzJTJGbXktdXNlcm5hbWUlMkZteS1kYXRhc2V0LXJlcG8lMkZkYXRhJTJGdmFsaWRhdGlvbi5jc3YlMjIlMkMlMjAlMjJ3JTIyKSUyMGFzJTIwZiUzQSUwQSUyMCUyMCUyMCUyMGYud3JpdGUoJTIydGV4dCUyQ2xhYmVsJTIyKSUwQSUyMCUyMCUyMCUyMGYud3JpdGUoJTIyRmFudGFzdGljJTIwbW92aWUhJTJDZ29vZCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfFileSystem
<span class="hljs-meta">&gt;&gt;&gt; </span>fs = HfFileSystem()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 디렉터리의 모든 파일 나열하기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>fs.ls(<span class="hljs-string">&quot;datasets/my-username/my-dataset-repo/data&quot;</span>, detail=<span class="hljs-literal">False</span>)
[<span class="hljs-string">&#x27;datasets/my-username/my-dataset-repo/data/train.csv&#x27;</span>, <span class="hljs-string">&#x27;datasets/my-username/my-dataset-repo/data/test.csv&#x27;</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 저장소(repo)에서 &quot;.csv&quot; 파일 모두 나열하기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>fs.glob(<span class="hljs-string">&quot;datasets/my-username/my-dataset-repo/**.csv&quot;</span>)
[<span class="hljs-string">&#x27;datasets/my-username/my-dataset-repo/data/train.csv&#x27;</span>, <span class="hljs-string">&#x27;datasets/my-username/my-dataset-repo/data/test.csv&#x27;</span>]

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 원격 파일 읽기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> fs.<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;datasets/my-username/my-dataset-repo/data/train.csv&quot;</span>, <span class="hljs-string">&quot;r&quot;</span>) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>    train_data = f.readlines()

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 문자열로 원격 파일의 내용 읽기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>train_data = fs.read_text(<span class="hljs-string">&quot;datasets/my-username/my-dataset-repo/data/train.csv&quot;</span>, revision=<span class="hljs-string">&quot;dev&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 원격 파일 쓰기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> fs.<span class="hljs-built_in">open</span>(<span class="hljs-string">&quot;datasets/my-username/my-dataset-repo/data/validation.csv&quot;</span>, <span class="hljs-string">&quot;w&quot;</span>) <span class="hljs-keyword">as</span> f:
<span class="hljs-meta">... </span>    f.write(<span class="hljs-string">&quot;text,label&quot;</span>)
<span class="hljs-meta">... </span>    f.write(<span class="hljs-string">&quot;Fantastic movie!,good&quot;</span>)`,wrap:!1}}),C=new Qs({props:{title:"통합",local:"integrations",headingTag:"h2"}}),V=new z({props:{code:"aGYlM0ElMkYlMkYlNUIlM0NyZXBvX3R5cGVfcHJlZml4JTNFJTVEJTNDcmVwb19pZCUzRSU1QiU0MCUzQ3JldmlzaW9uJTNFJTVEJTJGJTNDcGF0aCUyRmluJTJGcmVwbyUzRQ==",highlighted:'hf:<span class="hljs-regexp">//</span>[&lt;repo_type_prefix&gt;]&lt;repo_id&gt;[@&lt;revision&gt;]<span class="hljs-regexp">/&lt;path/i</span>n/repo&gt;',wrap:!1}}),I=new z({props:{code:"aW1wb3J0JTIwcGFuZGFzJTIwYXMlMjBwZCUwQSUwQSUyMyUyMCVFQyU5QiU5MCVFQSVCMiVBOSUyMENTViUyMCVFRCU4QyU4QyVFQyU5RCVCQyVFQyU5RCU4NCUyMCVFQiU4RCVCMCVFQyU5RCVCNCVFRCU4NCVCMCVFRCU5NCU4NCVFQiVBMCU4OCVFQyU5RSU4NCVFQyU5QyVCQyVFQiVBMSU5QyUyMCVFQyU5RCVCRCVFQSVCOCVCMCUwQWRmJTIwJTNEJTIwcGQucmVhZF9jc3YoJTIyaGYlM0ElMkYlMkZkYXRhc2V0cyUyRm15LXVzZXJuYW1lJTJGbXktZGF0YXNldC1yZXBvJTJGdHJhaW4uY3N2JTIyKSUwQSUwQSUyMyUyMCVFQiU4RCVCMCVFQyU5RCVCNCVFRCU4NCVCMCVFRCU5NCU4NCVFQiVBMCU4OCVFQyU5RSU4NCVFQyU5RCU4NCUyMCVFQyU5QiU5MCVFQSVCMiVBOSUyMENTViUyMCVFRCU4QyU4QyVFQyU5RCVCQyVFQiVBMSU5QyUyMCVFQyU5MyVCMCVFQSVCOCVCMCUwQWRmLnRvX2NzdiglMjJoZiUzQSUyRiUyRmRhdGFzZXRzJTJGbXktdXNlcm5hbWUlMkZteS1kYXRhc2V0LXJlcG8lMkZ0ZXN0LmNzdiUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> pandas <span class="hljs-keyword">as</span> pd

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 원격 CSV 파일을 데이터프레임으로 읽기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>df = pd.read_csv(<span class="hljs-string">&quot;hf://datasets/my-username/my-dataset-repo/train.csv&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 데이터프레임을 원격 CSV 파일로 쓰기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>df.to_csv(<span class="hljs-string">&quot;hf://datasets/my-username/my-dataset-repo/test.csv&quot;</span>)`,wrap:!1}}),E=new z({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmRmlsZVN5c3RlbSUwQWltcG9ydCUyMGR1Y2tkYiUwQSUwQWZzJTIwJTNEJTIwSGZGaWxlU3lzdGVtKCklMEFkdWNrZGIucmVnaXN0ZXJfZmlsZXN5c3RlbShmcyklMEElMjMlMjAlRUMlOUIlOTAlRUElQjIlQTklMjAlRUQlOEMlOEMlRUMlOUQlQkMlRUMlOUQlODQlMjAlRUMlQkYlQkMlRUIlQTYlQUMlRUQlOTUlOTglRUElQjMlQTAlMjAlRUElQjIlQjAlRUElQjMlQkMlRUIlQTUlQkMlMjAlRUIlOEQlQjAlRUMlOUQlQjQlRUQlODQlQjAlRUQlOTQlODQlRUIlQTAlODglRUMlOUUlODQlRUMlOUMlQkMlRUIlQTElOUMlMjAlRUElQjAlODAlRUMlQTAlQjglRUMlOTglQTQlRUElQjglQjAlMEFmc19xdWVyeV9maWxlJTIwJTNEJTIwJTIyaGYlM0ElMkYlMkZkYXRhc2V0cyUyRm15LXVzZXJuYW1lJTJGbXktZGF0YXNldC1yZXBvJTJGZGF0YV9kaXIlMkZkYXRhLnBhcnF1ZXQlMjIlMEFkZiUyMCUzRCUyMGR1Y2tkYi5xdWVyeShmJTIyU0VMRUNUJTIwKiUyMEZST00lMjAnJTdCZnNfcXVlcnlfZmlsZSU3RCclMjBMSU1JVCUyMDEwJTIyKS5kZigp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfFileSystem
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> duckdb

<span class="hljs-meta">&gt;&gt;&gt; </span>fs = HfFileSystem()
<span class="hljs-meta">&gt;&gt;&gt; </span>duckdb.register_filesystem(fs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 원격 파일을 쿼리하고 결과를 데이터프레임으로 가져오기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>fs_query_file = <span class="hljs-string">&quot;hf://datasets/my-username/my-dataset-repo/data_dir/data.parquet&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>df = duckdb.query(<span class="hljs-string">f&quot;SELECT * FROM &#x27;<span class="hljs-subst">{fs_query_file}</span>&#x27; LIMIT 10&quot;</span>).df()`,wrap:!1}}),$=new z({props:{code:"aW1wb3J0JTIwbnVtcHklMjBhcyUyMG5wJTBBaW1wb3J0JTIwemFyciUwQSUwQWVtYmVkZGluZ3MlMjAlM0QlMjBucC5yYW5kb20ucmFuZG4oNTAwMDAlMkMlMjAxMDAwKS5hc3R5cGUoJTIyZmxvYXQzMiUyMiklMEElMEElMjMlMjAlRUMlQTAlODAlRUMlOUUlQTUlRUMlODYlOEMocmVwbyklRUMlOTclOTAlMjAlRUIlQjAlQjAlRUMlOTclQjQlMjAlRUMlOTMlQjAlRUElQjglQjAlMEF3aXRoJTIwemFyci5vcGVuX2dyb3VwKCUyMmhmJTNBJTJGJTJGbXktdXNlcm5hbWUlMkZteS1tb2RlbC1yZXBvJTJGYXJyYXktc3RvcmUlMjIlMkMlMjBtb2RlJTNEJTIydyUyMiklMjBhcyUyMHJvb3QlM0ElMEElMjAlMjAlMjBmb28lMjAlM0QlMjByb290LmNyZWF0ZV9ncm91cCglMjJlbWJlZGRpbmdzJTIyKSUwQSUyMCUyMCUyMGZvb2JhciUyMCUzRCUyMGZvby56ZXJvcygnZXhwZXJpbWVudF8wJyUyQyUyMHNoYXBlJTNEKDUwMDAwJTJDJTIwMTAwMCklMkMlMjBjaHVua3MlM0QoMTAwMDAlMkMlMjAxMDAwKSUyQyUyMGR0eXBlJTNEJ2Y0JyklMEElMjAlMjAlMjBmb29iYXIlNUIlM0ElNUQlMjAlM0QlMjBlbWJlZGRpbmdzJTBBJTBBJTIzJTIwJUVDJUEwJTgwJUVDJTlFJUE1JUVDJTg2JThDKHJlcG8pJUVDJTk3JTkwJUVDJTg0JTlDJTIwJUVCJUIwJUIwJUVDJTk3JUI0JTIwJUVDJTlEJUJEJUVBJUI4JUIwJTBBd2l0aCUyMHphcnIub3Blbl9ncm91cCglMjJoZiUzQSUyRiUyRm15LXVzZXJuYW1lJTJGbXktbW9kZWwtcmVwbyUyRmFycmF5LXN0b3JlJTIyJTJDJTIwbW9kZSUzRCUyMnIlMjIpJTIwYXMlMjByb290JTNBJTBBJTIwJTIwJTIwZmlyc3Rfcm93JTIwJTNEJTIwcm9vdCU1QiUyMmVtYmVkZGluZ3MlMkZleHBlcmltZW50XzAlMjIlNUQlNUIwJTVE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> zarr

<span class="hljs-meta">&gt;&gt;&gt; </span>embeddings = np.random.randn(<span class="hljs-number">50000</span>, <span class="hljs-number">1000</span>).astype(<span class="hljs-string">&quot;float32&quot;</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 저장소(repo)에 배열 쓰기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> zarr.open_group(<span class="hljs-string">&quot;hf://my-username/my-model-repo/array-store&quot;</span>, mode=<span class="hljs-string">&quot;w&quot;</span>) <span class="hljs-keyword">as</span> root:
<span class="hljs-meta">... </span>   foo = root.create_group(<span class="hljs-string">&quot;embeddings&quot;</span>)
<span class="hljs-meta">... </span>   foobar = foo.zeros(<span class="hljs-string">&#x27;experiment_0&#x27;</span>, shape=(<span class="hljs-number">50000</span>, <span class="hljs-number">1000</span>), chunks=(<span class="hljs-number">10000</span>, <span class="hljs-number">1000</span>), dtype=<span class="hljs-string">&#x27;f4&#x27;</span>)
<span class="hljs-meta">... </span>   foobar[:] = embeddings

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># 저장소(repo)에서 배열 읽기</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> zarr.open_group(<span class="hljs-string">&quot;hf://my-username/my-model-repo/array-store&quot;</span>, mode=<span class="hljs-string">&quot;r&quot;</span>) <span class="hljs-keyword">as</span> root:
<span class="hljs-meta">... </span>   first_row = root[<span class="hljs-string">&quot;embeddings/experiment_0&quot;</span>][<span class="hljs-number">0</span>]`,wrap:!1}}),S=new Qs({props:{title:"인증",local:"authentication",headingTag:"h2"}}),_=new z({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmRmlsZVN5c3RlbSUwQWZzJTIwJTNEJTIwSGZGaWxlU3lzdGVtKHRva2VuJTNEdG9rZW4p",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfFileSystem
<span class="hljs-meta">&gt;&gt;&gt; </span>fs = HfFileSystem(token=token)`,wrap:!1}}),A=new Ws({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/ko/guides/hf_file_system.md"}}),{c(){J=p("meta"),W=e(),D=p("p"),L=e(),m(g.$$.fragment),P=e(),u=p("p"),u.innerHTML=bs,K=e(),m(T.$$.fragment),ss=e(),m(j.$$.fragment),ls=e(),f=p("p"),f.innerHTML=Is,ts=e(),Q=p("p"),Q.innerHTML=Fs,as=e(),m(C.$$.fragment),es=e(),w=p("p"),w.innerHTML=Zs,ns=e(),m(V.$$.fragment),ps=e(),R=p("p"),R.innerHTML=Es,cs=e(),k=p("p"),k.innerHTML=Gs,Us=e(),Y=p("ul"),b=p("li"),B=p("p"),B.innerHTML=$s,Cs=e(),m(I.$$.fragment),ms=e(),F=p("p"),F.innerHTML=Ss,is=e(),d=p("ul"),Z=p("li"),O=p("p"),O.innerHTML=vs,ws=e(),m(E.$$.fragment),Vs=e(),G=p("li"),q=p("p"),q.innerHTML=Xs,Rs=e(),m($.$$.fragment),os=e(),m(S.$$.fragment),Ms=e(),v=p("p"),v.innerHTML=_s,ys=e(),X=p("p"),X.innerHTML=Ns,rs=e(),m(_.$$.fragment),hs=e(),N=p("p"),N.textContent=As,Js=e(),m(A.$$.fragment),ds=e(),x=p("p"),this.h()},l(s){const l=xs("svelte-u9bgzb",document.head);J=c(l,"META",{name:!0,content:!0}),l.forEach(t),W=n(s),D=c(s,"P",{}),H(D).forEach(t),L=n(s),i(g.$$.fragment,s),P=n(s),u=c(s,"P",{"data-svelte-h":!0}),U(u)!=="svelte-1ivua7e"&&(u.innerHTML=bs),K=n(s),i(T.$$.fragment,s),ss=n(s),i(j.$$.fragment,s),ls=n(s),f=c(s,"P",{"data-svelte-h":!0}),U(f)!=="svelte-zykbtb"&&(f.innerHTML=Is),ts=n(s),Q=c(s,"P",{"data-svelte-h":!0}),U(Q)!=="svelte-1xn3eh"&&(Q.innerHTML=Fs),as=n(s),i(C.$$.fragment,s),es=n(s),w=c(s,"P",{"data-svelte-h":!0}),U(w)!=="svelte-1frwmcd"&&(w.innerHTML=Zs),ns=n(s),i(V.$$.fragment,s),ps=n(s),R=c(s,"P",{"data-svelte-h":!0}),U(R)!=="svelte-1re6aja"&&(R.innerHTML=Es),cs=n(s),k=c(s,"P",{"data-svelte-h":!0}),U(k)!=="svelte-shzjmq"&&(k.innerHTML=Gs),Us=n(s),Y=c(s,"UL",{});var Hs=H(Y);b=c(Hs,"LI",{});var us=H(b);B=c(us,"P",{"data-svelte-h":!0}),U(B)!=="svelte-g8f620"&&(B.innerHTML=$s),Cs=n(us),i(I.$$.fragment,us),us.forEach(t),Hs.forEach(t),ms=n(s),F=c(s,"P",{"data-svelte-h":!0}),U(F)!=="svelte-z2k9op"&&(F.innerHTML=Ss),is=n(s),d=c(s,"UL",{});var Ts=H(d);Z=c(Ts,"LI",{});var js=H(Z);O=c(js,"P",{"data-svelte-h":!0}),U(O)!=="svelte-1273hrm"&&(O.innerHTML=vs),ws=n(js),i(E.$$.fragment,js),js.forEach(t),Vs=n(Ts),G=c(Ts,"LI",{});var fs=H(G);q=c(fs,"P",{"data-svelte-h":!0}),U(q)!=="svelte-vh1ech"&&(q.innerHTML=Xs),Rs=n(fs),i($.$$.fragment,fs),fs.forEach(t),Ts.forEach(t),os=n(s),i(S.$$.fragment,s),Ms=n(s),v=c(s,"P",{"data-svelte-h":!0}),U(v)!=="svelte-1jjcoki"&&(v.innerHTML=_s),ys=n(s),X=c(s,"P",{"data-svelte-h":!0}),U(X)!=="svelte-kh9nbc"&&(X.innerHTML=Ns),rs=n(s),i(_.$$.fragment,s),hs=n(s),N=c(s,"P",{"data-svelte-h":!0}),U(N)!=="svelte-1jdbq9m"&&(N.textContent=As),Js=n(s),i(A.$$.fragment,s),ds=n(s),x=c(s,"P",{}),H(x).forEach(t),this.h()},h(){Ys(J,"name","hf:doc:metadata"),Ys(J,"content",Ps)},m(s,l){o(document.head,J),a(s,W,l),a(s,D,l),a(s,L,l),M(g,s,l),a(s,P,l),a(s,u,l),a(s,K,l),M(T,s,l),a(s,ss,l),M(j,s,l),a(s,ls,l),a(s,f,l),a(s,ts,l),a(s,Q,l),a(s,as,l),M(C,s,l),a(s,es,l),a(s,w,l),a(s,ns,l),M(V,s,l),a(s,ps,l),a(s,R,l),a(s,cs,l),a(s,k,l),a(s,Us,l),a(s,Y,l),o(Y,b),o(b,B),o(b,Cs),M(I,b,null),a(s,ms,l),a(s,F,l),a(s,is,l),a(s,d,l),o(d,Z),o(Z,O),o(Z,ws),M(E,Z,null),o(d,Vs),o(d,G),o(G,q),o(G,Rs),M($,G,null),a(s,os,l),M(S,s,l),a(s,Ms,l),a(s,v,l),a(s,ys,l),a(s,X,l),a(s,rs,l),M(_,s,l),a(s,hs,l),a(s,N,l),a(s,Js,l),M(A,s,l),a(s,ds,l),a(s,x,l),gs=!0},p:Os,i(s){gs||(y(g.$$.fragment,s),y(T.$$.fragment,s),y(j.$$.fragment,s),y(C.$$.fragment,s),y(V.$$.fragment,s),y(I.$$.fragment,s),y(E.$$.fragment,s),y($.$$.fragment,s),y(S.$$.fragment,s),y(_.$$.fragment,s),y(A.$$.fragment,s),gs=!0)},o(s){r(g.$$.fragment,s),r(T.$$.fragment,s),r(j.$$.fragment,s),r(C.$$.fragment,s),r(V.$$.fragment,s),r(I.$$.fragment,s),r(E.$$.fragment,s),r($.$$.fragment,s),r(S.$$.fragment,s),r(_.$$.fragment,s),r(A.$$.fragment,s),gs=!1},d(s){s&&(t(W),t(D),t(L),t(P),t(u),t(K),t(ss),t(ls),t(f),t(ts),t(Q),t(as),t(es),t(w),t(ns),t(ps),t(R),t(cs),t(k),t(Us),t(Y),t(ms),t(F),t(is),t(d),t(os),t(Ms),t(v),t(ys),t(X),t(rs),t(hs),t(N),t(Js),t(ds),t(x)),t(J),h(g,s),h(T,s),h(j,s),h(C,s),h(V,s),h(I),h(E),h($),h(S,s),h(_,s),h(A,s)}}}const Ps='{"title":"Hugging Face Hub에서 파일 시스템 API를 통해 상호작용하기","local":"interact-with-the-hub-through-the-filesystem-api","sections":[{"title":"사용법","local":"usage","sections":[],"depth":2},{"title":"통합","local":"integrations","sections":[],"depth":2},{"title":"인증","local":"authentication","sections":[],"depth":2}],"depth":1}';function Ks(ks){return qs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class el extends zs{constructor(J){super(),Ds(this,J,Ks,Ls,Bs,{})}}export{el as component};
