import{s as ie,n as ne,o as re}from"../chunks/scheduler.12fdeddc.js";import{S as le,i as oe,g as r,s as i,r as M,A as fe,h as l,f as a,c as n,j as ae,u as x,x as _,k as se,y as pe,a as s,v as C,d as L,t as y,w as P}from"../chunks/index.88dae322.js";import{C as de}from"../chunks/CodeBlock.8e54a086.js";import{H as G,E as me}from"../chunks/getInferenceSnippets.00466244.js";function ue(N){let o,E,H,k,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#file-formats">supported data format</a>.',A,m,I,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).',S,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.`,B,c,X='For more information, feel free to check out the documentation on <a href="./datasets-data-files-configuration">Data files Configuration</a> and the <a href="https://huggingface.co/datasets-examples" rel="nofollow">collections of example datasets</a>. The <a href="./datasets-image">Image Dataset doc page</a> proposes various methods to structure a dataset with images.',z,g,F,$,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>.",J,w,R,v,O,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">Team or Enterprise organizations</a>.',U,T,Y,D,q;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"}}),g=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"}}),T=new me({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-viewer-configure.md"}}),{c(){o=r("meta"),E=i(),H=r("p"),k=i(),M(f.$$.fragment),j=i(),p=r("p"),p.innerHTML=Z,V=i(),d=r("p"),d.innerHTML=K,A=i(),M(m.$$.fragment),I=i(),u=r("p"),u.innerHTML=Q,S=i(),h=r("p"),h.textContent=W,B=i(),c=r("p"),c.innerHTML=X,z=i(),M(g.$$.fragment),F=i(),$=r("p"),$.innerHTML=ee,J=i(),M(w.$$.fragment),R=i(),M(v.$$.fragment),O=i(),b=r("p"),b.innerHTML=te,U=i(),M(T.$$.fragment),Y=i(),D=r("p"),this.h()},l(e){const t=fe("svelte-u9bgzb",document.head);o=l(t,"META",{name:!0,content:!0}),t.forEach(a),E=n(e),H=l(e,"P",{}),ae(H).forEach(a),k=n(e),x(f.$$.fragment,e),j=n(e),p=l(e,"P",{"data-svelte-h":!0}),_(p)!=="svelte-1v4t8a2"&&(p.innerHTML=Z),V=n(e),d=l(e,"P",{"data-svelte-h":!0}),_(d)!=="svelte-w02d92"&&(d.innerHTML=K),A=n(e),x(m.$$.fragment,e),I=n(e),u=l(e,"P",{"data-svelte-h":!0}),_(u)!=="svelte-1bgfkre"&&(u.innerHTML=Q),S=n(e),h=l(e,"P",{"data-svelte-h":!0}),_(h)!=="svelte-j8m9b3"&&(h.textContent=W),B=n(e),c=l(e,"P",{"data-svelte-h":!0}),_(c)!=="svelte-wysp7t"&&(c.innerHTML=X),z=n(e),x(g.$$.fragment,e),F=n(e),$=l(e,"P",{"data-svelte-h":!0}),_($)!=="svelte-17ntj7v"&&($.innerHTML=ee),J=n(e),x(w.$$.fragment,e),R=n(e),x(v.$$.fragment,e),O=n(e),b=l(e,"P",{"data-svelte-h":!0}),_(b)!=="svelte-ma851b"&&(b.innerHTML=te),U=n(e),x(T.$$.fragment,e),Y=n(e),D=l(e,"P",{}),ae(D).forEach(a),this.h()},h(){se(o,"name","hf:doc:metadata"),se(o,"content",he)},m(e,t){pe(document.head,o),s(e,E,t),s(e,H,t),s(e,k,t),C(f,e,t),s(e,j,t),s(e,p,t),s(e,V,t),s(e,d,t),s(e,A,t),C(m,e,t),s(e,I,t),s(e,u,t),s(e,S,t),s(e,h,t),s(e,B,t),s(e,c,t),s(e,z,t),C(g,e,t),s(e,F,t),s(e,$,t),s(e,J,t),C(w,e,t),s(e,R,t),C(v,e,t),s(e,O,t),s(e,b,t),s(e,U,t),C(T,e,t),s(e,Y,t),s(e,D,t),q=!0},p:ne,i(e){q||(L(f.$$.fragment,e),L(m.$$.fragment,e),L(g.$$.fragment,e),L(w.$$.fragment,e),L(v.$$.fragment,e),L(T.$$.fragment,e),q=!0)},o(e){y(f.$$.fragment,e),y(m.$$.fragment,e),y(g.$$.fragment,e),y(w.$$.fragment,e),y(v.$$.fragment,e),y(T.$$.fragment,e),q=!1},d(e){e&&(a(E),a(H),a(k),a(j),a(p),a(V),a(d),a(A),a(I),a(u),a(S),a(h),a(B),a(c),a(z),a(F),a($),a(J),a(R),a(O),a(b),a(U),a(Y),a(D)),a(o),P(f,e),P(m,e),P(g,e),P(w,e),P(v,e),P(T,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 ce(N){return re(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class be extends le{constructor(o){super(),oe(this,o,ce,ue,ie,{})}}export{be as component};
