import{s as ie,n as ne,o as le}from"../chunks/scheduler.d6170356.js";import{S as re,i as oe,g as l,s as i,r as M,A as fe,h as r,f as a,c as n,j as ae,u as C,x as T,k as se,y as pe,a as s,v as L,d as y,t as P,w as x}from"../chunks/index.fcd4cc08.js";import{C as de}from"../chunks/CodeBlock.7b16bdef.js";import{H as G,E as me}from"../chunks/EditOnGithub.da2b595c.js";function ue(N){let o,k,H,D,f,j,p,Z=`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.`,V,d,K='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>.',A,m,S,u,Q='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).',q,h,W=`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.`,z,$,X='For more information, feel free to check out the documentation on <a href="./datasets-data-files-configuration">Data files Configuration</a>.',B,c,I,g,ee="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>.",F,w,J,v,R,b,te='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>.',O,_,U,E,Y;return f=new G({props:{title:"Configure the Dataset Viewer",local:"configure-the-dataset-viewer",headingTag:"h1"}}),m=new G({props:{title:"Configure dropdowns for splits or subsets",local:"configure-dropdowns-for-splits-or-subsets",headingTag:"h2"}}),c=new G({props:{title:"Disable the viewer",local:"disable-the-viewer",headingTag:"h2"}}),w=new de({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}}),v=new G({props:{title:"Private datasets",local:"private-datasets",headingTag:"h2"}}),_=new me({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-viewer-configure.md"}}),{c(){o=l("meta"),k=i(),H=l("p"),D=i(),M(f.$$.fragment),j=i(),p=l("p"),p.innerHTML=Z,V=i(),d=l("p"),d.innerHTML=K,A=i(),M(m.$$.fragment),S=i(),u=l("p"),u.innerHTML=Q,q=i(),h=l("p"),h.textContent=W,z=i(),$=l("p"),$.innerHTML=X,B=i(),M(c.$$.fragment),I=i(),g=l("p"),g.innerHTML=ee,F=i(),M(w.$$.fragment),J=i(),M(v.$$.fragment),R=i(),b=l("p"),b.innerHTML=te,O=i(),M(_.$$.fragment),U=i(),E=l("p"),this.h()},l(e){const t=fe("svelte-u9bgzb",document.head);o=r(t,"META",{name:!0,content:!0}),t.forEach(a),k=n(e),H=r(e,"P",{}),ae(H).forEach(a),D=n(e),C(f.$$.fragment,e),j=n(e),p=r(e,"P",{"data-svelte-h":!0}),T(p)!=="svelte-1v4t8a2"&&(p.innerHTML=Z),V=n(e),d=r(e,"P",{"data-svelte-h":!0}),T(d)!=="svelte-sq2zkj"&&(d.innerHTML=K),A=n(e),C(m.$$.fragment,e),S=n(e),u=r(e,"P",{"data-svelte-h":!0}),T(u)!=="svelte-1bgfkre"&&(u.innerHTML=Q),q=n(e),h=r(e,"P",{"data-svelte-h":!0}),T(h)!=="svelte-j8m9b3"&&(h.textContent=W),z=n(e),$=r(e,"P",{"data-svelte-h":!0}),T($)!=="svelte-1blkqn3"&&($.innerHTML=X),B=n(e),C(c.$$.fragment,e),I=n(e),g=r(e,"P",{"data-svelte-h":!0}),T(g)!=="svelte-17ntj7v"&&(g.innerHTML=ee),F=n(e),C(w.$$.fragment,e),J=n(e),C(v.$$.fragment,e),R=n(e),b=r(e,"P",{"data-svelte-h":!0}),T(b)!=="svelte-1l3qyl4"&&(b.innerHTML=te),O=n(e),C(_.$$.fragment,e),U=n(e),E=r(e,"P",{}),ae(E).forEach(a),this.h()},h(){se(o,"name","hf:doc:metadata"),se(o,"content",he)},m(e,t){pe(document.head,o),s(e,k,t),s(e,H,t),s(e,D,t),L(f,e,t),s(e,j,t),s(e,p,t),s(e,V,t),s(e,d,t),s(e,A,t),L(m,e,t),s(e,S,t),s(e,u,t),s(e,q,t),s(e,h,t),s(e,z,t),s(e,$,t),s(e,B,t),L(c,e,t),s(e,I,t),s(e,g,t),s(e,F,t),L(w,e,t),s(e,J,t),L(v,e,t),s(e,R,t),s(e,b,t),s(e,O,t),L(_,e,t),s(e,U,t),s(e,E,t),Y=!0},p:ne,i(e){Y||(y(f.$$.fragment,e),y(m.$$.fragment,e),y(c.$$.fragment,e),y(w.$$.fragment,e),y(v.$$.fragment,e),y(_.$$.fragment,e),Y=!0)},o(e){P(f.$$.fragment,e),P(m.$$.fragment,e),P(c.$$.fragment,e),P(w.$$.fragment,e),P(v.$$.fragment,e),P(_.$$.fragment,e),Y=!1},d(e){e&&(a(k),a(H),a(D),a(j),a(p),a(V),a(d),a(A),a(S),a(u),a(q),a(h),a(z),a($),a(B),a(I),a(g),a(F),a(J),a(R),a(b),a(O),a(U),a(E)),a(o),x(f,e),x(m,e),x(c,e),x(w,e),x(v,e),x(_,e)}}}const he='{"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 $e(N){return le(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class be extends re{constructor(o){super(),oe(this,o,$e,ue,ie,{})}}export{be as component};
