import{s as ae,n as se,o as ie}from"../chunks/scheduler.d6170356.js";import{S as ne,i as le,g as l,s as i,r as C,A as re,h as r,f as a,c as n,j as ee,u as L,x as T,k as te,y as oe,a as s,v as y,d as P,t as x,w as H}from"../chunks/index.fcd4cc08.js";import{C as fe}from"../chunks/CodeBlock.7b16bdef.js";import{H as Y}from"../chunks/Heading.8660bd0e.js";function pe(N){let o,k,b,D,f,E,p,O=`The Dataset Viewer supports many <a href="./datasets-adding#file-formats">data files formats</a>, from text to tabular and from image to audio formats.
It also separates the train/validation/test splits based on file and folder names.`,j,d,Z='To configure the Dataset Viewer for your dataset, first make sure your dataset is in a <a href="./datasets-adding#files-formats">supported data format</a>.',V,m,A,u,G='In the Dataset Viewer you can view the <a href="https://en.wikipedia.org/wiki/Training,_validation,_and_test_data_sets" rel="nofollow">train/validation/test</a> splits of datasets, and sometimes additionally choose between multiple subsets (e.g. one per language).',S,h,K=`To define those dropdowns, you can name the data files or their folder after their split names (train/validation/test).
It is also possible to customize your splits manually using YAML.`,q,c,Q='For more information, feel free to check out the documentation on <a href="./datasets-data-files-configuration">Data files Configuration</a>.',z,$,B,g,W="The dataset viewer can be disabled. To do this, add a YAML section to the dataset’s <code>README.md</code> file (create one if it does not already exist) and add a <code>viewer</code> property with the value <code>false</code>.",I,v,F,w,J,_,X='For <strong>private</strong> datasets, the Dataset Viewer is enabled for <a href="https://huggingface.co/pricing" rel="nofollow">PRO users</a> and <a href="https://huggingface.co/enterprise" rel="nofollow">Enterprise Hub organizations</a>.',R,M,U;return f=new Y({props:{title:"Configure the Dataset Viewer",local:"configure-the-dataset-viewer",headingTag:"h1"}}),m=new Y({props:{title:"Configure dropdowns for splits or subsets",local:"configure-dropdowns-for-splits-or-subsets",headingTag:"h2"}}),$=new Y({props:{title:"Disable the viewer",local:"disable-the-viewer",headingTag:"h2"}}),v=new fe({props:{code:"LS0tJTBBdmlld2VyJTNBJTIwZmFsc2UlMEEtLS0=",highlighted:`<span class="hljs-meta">---</span>
<span class="hljs-attr">viewer:</span> <span class="hljs-literal">false</span>
<span class="hljs-meta">---</span>`,wrap:!1}}),w=new Y({props:{title:"Private datasets",local:"private-datasets",headingTag:"h2"}}),{c(){o=l("meta"),k=i(),b=l("p"),D=i(),C(f.$$.fragment),E=i(),p=l("p"),p.innerHTML=O,j=i(),d=l("p"),d.innerHTML=Z,V=i(),C(m.$$.fragment),A=i(),u=l("p"),u.innerHTML=G,S=i(),h=l("p"),h.textContent=K,q=i(),c=l("p"),c.innerHTML=Q,z=i(),C($.$$.fragment),B=i(),g=l("p"),g.innerHTML=W,I=i(),C(v.$$.fragment),F=i(),C(w.$$.fragment),J=i(),_=l("p"),_.innerHTML=X,R=i(),M=l("p"),this.h()},l(e){const t=re("svelte-u9bgzb",document.head);o=r(t,"META",{name:!0,content:!0}),t.forEach(a),k=n(e),b=r(e,"P",{}),ee(b).forEach(a),D=n(e),L(f.$$.fragment,e),E=n(e),p=r(e,"P",{"data-svelte-h":!0}),T(p)!=="svelte-1v4t8a2"&&(p.innerHTML=O),j=n(e),d=r(e,"P",{"data-svelte-h":!0}),T(d)!=="svelte-sq2zkj"&&(d.innerHTML=Z),V=n(e),L(m.$$.fragment,e),A=n(e),u=r(e,"P",{"data-svelte-h":!0}),T(u)!=="svelte-1bgfkre"&&(u.innerHTML=G),S=n(e),h=r(e,"P",{"data-svelte-h":!0}),T(h)!=="svelte-j8m9b3"&&(h.textContent=K),q=n(e),c=r(e,"P",{"data-svelte-h":!0}),T(c)!=="svelte-1blkqn3"&&(c.innerHTML=Q),z=n(e),L($.$$.fragment,e),B=n(e),g=r(e,"P",{"data-svelte-h":!0}),T(g)!=="svelte-17ntj7v"&&(g.innerHTML=W),I=n(e),L(v.$$.fragment,e),F=n(e),L(w.$$.fragment,e),J=n(e),_=r(e,"P",{"data-svelte-h":!0}),T(_)!=="svelte-1l3qyl4"&&(_.innerHTML=X),R=n(e),M=r(e,"P",{}),ee(M).forEach(a),this.h()},h(){te(o,"name","hf:doc:metadata"),te(o,"content",de)},m(e,t){oe(document.head,o),s(e,k,t),s(e,b,t),s(e,D,t),y(f,e,t),s(e,E,t),s(e,p,t),s(e,j,t),s(e,d,t),s(e,V,t),y(m,e,t),s(e,A,t),s(e,u,t),s(e,S,t),s(e,h,t),s(e,q,t),s(e,c,t),s(e,z,t),y($,e,t),s(e,B,t),s(e,g,t),s(e,I,t),y(v,e,t),s(e,F,t),y(w,e,t),s(e,J,t),s(e,_,t),s(e,R,t),s(e,M,t),U=!0},p:se,i(e){U||(P(f.$$.fragment,e),P(m.$$.fragment,e),P($.$$.fragment,e),P(v.$$.fragment,e),P(w.$$.fragment,e),U=!0)},o(e){x(f.$$.fragment,e),x(m.$$.fragment,e),x($.$$.fragment,e),x(v.$$.fragment,e),x(w.$$.fragment,e),U=!1},d(e){e&&(a(k),a(b),a(D),a(E),a(p),a(j),a(d),a(V),a(A),a(u),a(S),a(h),a(q),a(c),a(z),a(B),a(g),a(I),a(F),a(J),a(_),a(R),a(M)),a(o),H(f,e),H(m,e),H($,e),H(v,e),H(w,e)}}}const de='{"title":"Configure the Dataset Viewer","local":"configure-the-dataset-viewer","sections":[{"title":"Configure dropdowns for splits or subsets","local":"configure-dropdowns-for-splits-or-subsets","sections":[],"depth":2},{"title":"Disable the viewer","local":"disable-the-viewer","sections":[],"depth":2},{"title":"Private datasets","local":"private-datasets","sections":[],"depth":2}],"depth":1}';function me(N){return ie(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ge extends ne{constructor(o){super(),le(this,o,me,pe,ae,{})}}export{ge as component};
