import{S as Hr,i as Yr,s as Vr,e as s,k as d,w as ne,t as l,N as Fr,c as o,d as t,m as i,a as r,x as de,h as n,b as h,P as ke,G as e,g as f,y as ie,L as Lr,q as ce,o as he,B as fe,v as Xr}from"../chunks/vendor-hf-doc-builder.js";import{I as St}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as Wr}from"../chunks/CodeBlock-hf-doc-builder.js";function Qr(_o){let q,Rt,x,S,Me,L,_a,qe,Ea,Pt,T,ya,xe,ba,wa,Ce,Ta,$a,Nt,C,R,je,X,Da,Ge,ka,Ut,u,Ma,Ae,qa,xa,Be,Ca,ja,Oe,Ga,Aa,Ie,Ba,Oa,Se,Ia,Sa,Jt,Q,zt,j,ue,Eo,Ra,pe,yo,Zt,$,Pa,Re,Na,Ua,ve,Ja,za,Wt,G,P,Pe,K,Za,Ne,Wa,Ht,N,Ha,Ue,Ya,Va,Yt,A,me,bo,Fa,ge,wo,Vt,_e,La,Ft,U,Je,g,ze,Xa,Qa,Ze,Ka,es,We,ts,as,He,ss,os,v,_,Ye,Ve,rs,ls,Fe,Le,ns,ds,Xe,is,cs,Qe,Ke,hs,fs,E,et,tt,us,ps,at,st,vs,ms,ot,gs,_s,rt,lt,Es,ys,y,nt,dt,bs,ws,it,ct,Ts,$s,ht,Ds,ks,ft,ut,Ms,qs,b,pt,vt,xs,Cs,mt,gt,js,Gs,ee,As,_t,Bs,Os,Is,te,Et,Ss,Rs,yt,Ps,Ns,w,bt,wt,Us,Js,Tt,$t,zs,Zs,Dt,Ws,Hs,ae,kt,Ys,Vs,Mt,Fs,Lt,p,Ls,qt,Xs,Qs,xt,Ks,eo,se,to,ao,Ct,so,oo,Xt,B,J,jt,oe,ro,Gt,lo,Qt,Ee,no,Kt,ye,io,ea,O,be,To,co,we,$o,ta,I,z,At,re,ho,Bt,fo,aa,D,uo,Ot,po,vo,It,mo,go,sa,le,oa;return L=new St({}),X=new St({}),Q=new Wr({props:{code:"LS0tJTBBZXh0cmFfZ2F0ZWRfcHJvbXB0JTNBJTIwJTIyWW91JTIwYWdyZWUlMjB0byUyMG5vdCUyMGF0dGVtcHQlMjB0byUyMGRldGVybWluZSUyMHRoZSUyMGlkZW50aXR5JTIwb2YlMjBpbmRpdmlkdWFscyUyMGluJTIwdGhpcyUyMGRhdGFzZXQlMjIlMEFleHRyYV9nYXRlZF9maWVsZHMlM0ElMEElMjBDb21wYW55JTNBJTIwdGV4dCUwQSUyMENvdW50cnklM0ElMjB0ZXh0JTBBJTIwSSUyMGFncmVlJTIwdG8lMjB1c2UlMjB0aGlzJTIwZGF0YXNldCUyMGZvciUyMG5vbi1jb21tZXJjaWFsJTIwdXNlJTIwT05MWSUzQSUyMGNoZWNrYm94JTBBLS0t",highlighted:`<span class="hljs-meta">---</span>
<span class="hljs-attr">extra_gated_prompt:</span> <span class="hljs-string">&quot;You agree to not attempt to determine the identity of individuals in this dataset&quot;</span>
<span class="hljs-attr">extra_gated_fields:</span>
 <span class="hljs-attr">Company:</span> <span class="hljs-string">text</span>
 <span class="hljs-attr">Country:</span> <span class="hljs-string">text</span>
 <span class="hljs-attr">I agree to use this dataset for non-commercial use ONLY:</span> <span class="hljs-string">checkbox</span>
<span class="hljs-meta">---</span>`}}),K=new St({}),oe=new St({}),re=new St({}),le=new Wr({props:{code:"LS0tJTBBZXh0cmFfZ2F0ZWRfaGVhZGluZyUzQSUyMCUyMkFja25vd2xlZGdlJTIwbGljZW5zZSUyMHRvJTIwYWNjZXB0JTIwdGhlJTIwcmVwb3NpdG9yeSUyMiUwQWV4dHJhX2dhdGVkX2J1dHRvbl9jb250ZW50JTNBJTIwJTIyQWNrbm93bGVkZ2UlMjBsaWNlbnNlJTIyJTBBLS0t",highlighted:`<span class="hljs-meta">---</span>
<span class="hljs-attr">extra_gated_heading:</span> <span class="hljs-string">&quot;Acknowledge license to accept the repository&quot;</span>
<span class="hljs-attr">extra_gated_button_content:</span> <span class="hljs-string">&quot;Acknowledge license&quot;</span>
<span class="hljs-meta">---</span>`}}),{c(){q=s("meta"),Rt=d(),x=s("h1"),S=s("a"),Me=s("span"),ne(L.$$.fragment),_a=d(),qe=s("span"),Ea=l("Gated datasets"),Pt=d(),T=s("p"),ya=l("To give dataset creators more control over how their datasets are used, the Hub allows users to enable "),xe=s("strong"),ba=l("User Access requests"),wa=l(" through a dataset\u2019s "),Ce=s("strong"),Ta=l("Settings"),$a=l(` tab.
Enabling this setting requires users to agree to share their contact information and accept the dataset authors\u2019 terms and conditions in order to access the dataset.
The contact information is stored in a database, and dataset owners are able to download a copy of the user access report.`),Nt=d(),C=s("h2"),R=s("a"),je=s("span"),ne(X.$$.fragment),Da=d(),Ge=s("span"),ka=l("Modifying the prompt"),Ut=d(),u=s("p"),Ma=l("The User Access request dialog can be modified to include additional text and checkbox fields in the prompt. To do this, add a YAML section to the dataset\u2019s "),Ae=s("code"),qa=l("README.md"),xa=l(" file (create one if it does not already exist) and add an "),Be=s("code"),Ca=l("extra_gated_fields"),ja=l(" property. Within this property, you\u2019ll be able to add as many custom fields as you like and whether they are a "),Oe=s("code"),Ga=l("text"),Aa=l(" or "),Ie=s("code"),Ba=l("checkbox"),Oa=l(" field. An "),Se=s("code"),Ia=l("extra_gated_prompt"),Sa=l(" property can also be included to add a customized text message."),Jt=d(),ne(Q.$$.fragment),zt=d(),j=s("div"),ue=s("img"),Ra=d(),pe=s("img"),Zt=d(),$=s("p"),Pa=l("The "),Re=s("code"),Na=l("README.md"),Ua=l(" file for a dataset is called a "),ve=s("a"),Ja=l("Dataset Card"),za=l(". Visit the documentation to learn more about how to use it and to see the properties that you can configure."),Wt=d(),G=s("h2"),P=s("a"),Pe=s("span"),ne(K.$$.fragment),Za=d(),Ne=s("span"),Wa=l("Manual approval"),Ht=d(),N=s("p"),Ha=l(`By default, requests to access the dataset are automatically accepted.
Dataset authors can set the approval mode to \u201CManual reviews\u201D from the dataset\u2019s `),Ue=s("strong"),Ya=l("Settings"),Va=l(` tab.
Doing so enforces that each access request will be manually reviewed and approved by the dataset authors.
Only users whose access requests have been approved will be able to access the dataset\u2019s content.`),Yt=d(),A=s("div"),me=s("img"),Fa=d(),ge=s("img"),Vt=d(),_e=s("p"),La=l("You can automate the approval of access requests with the following API:"),Ft=d(),U=s("table"),Je=s("thead"),g=s("tr"),ze=s("th"),Xa=l("Method"),Qa=d(),Ze=s("th"),Ka=l("URI"),es=d(),We=s("th"),ts=l("Description"),as=d(),He=s("th"),ss=l("Payload"),os=d(),v=s("tbody"),_=s("tr"),Ye=s("td"),Ve=s("code"),rs=l("GET"),ls=d(),Fe=s("td"),Le=s("code"),ns=l("/api/datasets/{repo_id}/user-access-request/pending"),ds=d(),Xe=s("td"),is=l("Retrieve the list of pending access requests for the given dataset."),cs=d(),Qe=s("td"),Ke=s("code"),hs=l('headers = { "authorization" : "Bearer $token" }'),fs=d(),E=s("tr"),et=s("td"),tt=s("code"),us=l("GET"),ps=d(),at=s("td"),st=s("code"),vs=l("/api/datasets/{repo_id}/user-access-request/accepted"),ms=d(),ot=s("td"),gs=l("Retrieve the list of accepted access requests for the given dataset."),_s=d(),rt=s("td"),lt=s("code"),Es=l('headers = { "authorization" : "Bearer $token" }'),ys=d(),y=s("tr"),nt=s("td"),dt=s("code"),bs=l("GET"),ws=d(),it=s("td"),ct=s("code"),Ts=l("/api/datasets/{repo_id}/user-access-request/rejected"),$s=d(),ht=s("td"),Ds=l("Retrieve the list of rejected access requests for the given dataset."),ks=d(),ft=s("td"),ut=s("code"),Ms=l('headers = { "authorization" : "Bearer $token" }'),qs=d(),b=s("tr"),pt=s("td"),vt=s("code"),xs=l("POST"),Cs=d(),mt=s("td"),gt=s("code"),js=l("/api/datasets/{repo_id}/user-access-request/handle"),Gs=d(),ee=s("td"),As=l("Change the status of a given access request to "),_t=s("code"),Bs=l("status"),Os=l("."),Is=d(),te=s("td"),Et=s("code"),Ss=l('headers = { "authorization" : "Bearer $token" }'),Rs=d(),yt=s("code"),Ps=l('json = { "status": "accepted" | "rejected" | "pending", "user": "username" }'),Ns=d(),w=s("tr"),bt=s("td"),wt=s("code"),Us=l("POST"),Js=d(),Tt=s("td"),$t=s("code"),zs=l("/api/datasets/{repo_id}/user-access-request/grant"),Zs=d(),Dt=s("td"),Ws=l("Allow a specific user to access your repository."),Hs=d(),ae=s("td"),kt=s("code"),Ys=l('headers = { "authorization" : "Bearer $token" }'),Vs=d(),Mt=s("code"),Fs=l('json = { "user": "username" }'),Lt=d(),p=s("p"),Ls=l("The base URL for the HTTP endpoints above is "),qt=s("code"),Xs=l("https://huggingface.co"),Qs=l(". The "),xt=s("code"),Ks=l("$token"),eo=l(" to pass as a bearer token can be generated from "),se=s("a"),to=l("your user settings"),ao=l(". It must have "),Ct=s("code"),so=l("write"),oo=l(" access to the gated repository."),Xt=d(),B=s("h3"),J=s("a"),jt=s("span"),ne(oe.$$.fragment),ro=d(),Gt=s("span"),lo=l("Notifications settings"),Qt=d(),Ee=s("p"),no=l(`By default, notifications for new pending access requests are sent once a day via email.
When the repo lives in an organization, those emails are sent to the first 5 admins of the organization.`),Kt=d(),ye=s("p"),io=l(`You can customize the way you receive those notifications from the gated dataset\u2019s settings page.
You can choose whether to receive notifications for new pending access requests in bulk once a day or in real-time.
You can also set a custom email to send those notifications to.`),ea=d(),O=s("div"),be=s("img"),co=d(),we=s("img"),ta=d(),I=s("h2"),z=s("a"),At=s("span"),ne(re.$$.fragment),ho=d(),Bt=s("span"),fo=l("Additional Customization"),aa=d(),D=s("p"),uo=l("In some cases, you might also want to modify the text in the heading of the gate as well as the text in the button. For those use cases you can modify "),Ot=s("code"),po=l("extra_gated_heading"),vo=l(" and "),It=s("code"),mo=l("extra_gated_button_content"),go=l("."),sa=d(),ne(le.$$.fragment),this.h()},l(a){const c=Fr('[data-svelte="svelte-1phssyn"]',document.head);q=o(c,"META",{name:!0,content:!0}),c.forEach(t),Rt=i(a),x=o(a,"H1",{class:!0});var ra=r(x);S=o(ra,"A",{id:!0,class:!0,href:!0});var Do=r(S);Me=o(Do,"SPAN",{});var ko=r(Me);de(L.$$.fragment,ko),ko.forEach(t),Do.forEach(t),_a=i(ra),qe=o(ra,"SPAN",{});var Mo=r(qe);Ea=n(Mo,"Gated datasets"),Mo.forEach(t),ra.forEach(t),Pt=i(a),T=o(a,"P",{});var Te=r(T);ya=n(Te,"To give dataset creators more control over how their datasets are used, the Hub allows users to enable "),xe=o(Te,"STRONG",{});var qo=r(xe);ba=n(qo,"User Access requests"),qo.forEach(t),wa=n(Te," through a dataset\u2019s "),Ce=o(Te,"STRONG",{});var xo=r(Ce);Ta=n(xo,"Settings"),xo.forEach(t),$a=n(Te,` tab.
Enabling this setting requires users to agree to share their contact information and accept the dataset authors\u2019 terms and conditions in order to access the dataset.
The contact information is stored in a database, and dataset owners are able to download a copy of the user access report.`),Te.forEach(t),Nt=i(a),C=o(a,"H2",{class:!0});var la=r(C);R=o(la,"A",{id:!0,class:!0,href:!0});var Co=r(R);je=o(Co,"SPAN",{});var jo=r(je);de(X.$$.fragment,jo),jo.forEach(t),Co.forEach(t),Da=i(la),Ge=o(la,"SPAN",{});var Go=r(Ge);ka=n(Go,"Modifying the prompt"),Go.forEach(t),la.forEach(t),Ut=i(a),u=o(a,"P",{});var m=r(u);Ma=n(m,"The User Access request dialog can be modified to include additional text and checkbox fields in the prompt. To do this, add a YAML section to the dataset\u2019s "),Ae=o(m,"CODE",{});var Ao=r(Ae);qa=n(Ao,"README.md"),Ao.forEach(t),xa=n(m," file (create one if it does not already exist) and add an "),Be=o(m,"CODE",{});var Bo=r(Be);Ca=n(Bo,"extra_gated_fields"),Bo.forEach(t),ja=n(m," property. Within this property, you\u2019ll be able to add as many custom fields as you like and whether they are a "),Oe=o(m,"CODE",{});var Oo=r(Oe);Ga=n(Oo,"text"),Oo.forEach(t),Aa=n(m," or "),Ie=o(m,"CODE",{});var Io=r(Ie);Ba=n(Io,"checkbox"),Io.forEach(t),Oa=n(m," field. An "),Se=o(m,"CODE",{});var So=r(Se);Ia=n(So,"extra_gated_prompt"),So.forEach(t),Sa=n(m," property can also be included to add a customized text message."),m.forEach(t),Jt=i(a),de(Q.$$.fragment,a),zt=i(a),j=o(a,"DIV",{class:!0});var na=r(j);ue=o(na,"IMG",{class:!0,src:!0}),Ra=i(na),pe=o(na,"IMG",{class:!0,src:!0}),na.forEach(t),Zt=i(a),$=o(a,"P",{});var $e=r($);Pa=n($e,"The "),Re=o($e,"CODE",{});var Ro=r(Re);Na=n(Ro,"README.md"),Ro.forEach(t),Ua=n($e," file for a dataset is called a "),ve=o($e,"A",{href:!0});var Po=r(ve);Ja=n(Po,"Dataset Card"),Po.forEach(t),za=n($e,". Visit the documentation to learn more about how to use it and to see the properties that you can configure."),$e.forEach(t),Wt=i(a),G=o(a,"H2",{class:!0});var da=r(G);P=o(da,"A",{id:!0,class:!0,href:!0});var No=r(P);Pe=o(No,"SPAN",{});var Uo=r(Pe);de(K.$$.fragment,Uo),Uo.forEach(t),No.forEach(t),Za=i(da),Ne=o(da,"SPAN",{});var Jo=r(Ne);Wa=n(Jo,"Manual approval"),Jo.forEach(t),da.forEach(t),Ht=i(a),N=o(a,"P",{});var ia=r(N);Ha=n(ia,`By default, requests to access the dataset are automatically accepted.
Dataset authors can set the approval mode to \u201CManual reviews\u201D from the dataset\u2019s `),Ue=o(ia,"STRONG",{});var zo=r(Ue);Ya=n(zo,"Settings"),zo.forEach(t),Va=n(ia,` tab.
Doing so enforces that each access request will be manually reviewed and approved by the dataset authors.
Only users whose access requests have been approved will be able to access the dataset\u2019s content.`),ia.forEach(t),Yt=i(a),A=o(a,"DIV",{class:!0});var ca=r(A);me=o(ca,"IMG",{class:!0,src:!0}),Fa=i(ca),ge=o(ca,"IMG",{class:!0,src:!0}),ca.forEach(t),Vt=i(a),_e=o(a,"P",{});var Zo=r(_e);La=n(Zo,"You can automate the approval of access requests with the following API:"),Zo.forEach(t),Ft=i(a),U=o(a,"TABLE",{});var ha=r(U);Je=o(ha,"THEAD",{});var Wo=r(Je);g=o(Wo,"TR",{});var Z=r(g);ze=o(Z,"TH",{});var Ho=r(ze);Xa=n(Ho,"Method"),Ho.forEach(t),Qa=i(Z),Ze=o(Z,"TH",{});var Yo=r(Ze);Ka=n(Yo,"URI"),Yo.forEach(t),es=i(Z),We=o(Z,"TH",{});var Vo=r(We);ts=n(Vo,"Description"),Vo.forEach(t),as=i(Z),He=o(Z,"TH",{});var Fo=r(He);ss=n(Fo,"Payload"),Fo.forEach(t),Z.forEach(t),Wo.forEach(t),os=i(ha),v=o(ha,"TBODY",{});var k=r(v);_=o(k,"TR",{});var W=r(_);Ye=o(W,"TD",{});var Lo=r(Ye);Ve=o(Lo,"CODE",{});var Xo=r(Ve);rs=n(Xo,"GET"),Xo.forEach(t),Lo.forEach(t),ls=i(W),Fe=o(W,"TD",{});var Qo=r(Fe);Le=o(Qo,"CODE",{});var Ko=r(Le);ns=n(Ko,"/api/datasets/{repo_id}/user-access-request/pending"),Ko.forEach(t),Qo.forEach(t),ds=i(W),Xe=o(W,"TD",{});var er=r(Xe);is=n(er,"Retrieve the list of pending access requests for the given dataset."),er.forEach(t),cs=i(W),Qe=o(W,"TD",{});var tr=r(Qe);Ke=o(tr,"CODE",{});var ar=r(Ke);hs=n(ar,'headers = { "authorization" : "Bearer $token" }'),ar.forEach(t),tr.forEach(t),W.forEach(t),fs=i(k),E=o(k,"TR",{});var H=r(E);et=o(H,"TD",{});var sr=r(et);tt=o(sr,"CODE",{});var or=r(tt);us=n(or,"GET"),or.forEach(t),sr.forEach(t),ps=i(H),at=o(H,"TD",{});var rr=r(at);st=o(rr,"CODE",{});var lr=r(st);vs=n(lr,"/api/datasets/{repo_id}/user-access-request/accepted"),lr.forEach(t),rr.forEach(t),ms=i(H),ot=o(H,"TD",{});var nr=r(ot);gs=n(nr,"Retrieve the list of accepted access requests for the given dataset."),nr.forEach(t),_s=i(H),rt=o(H,"TD",{});var dr=r(rt);lt=o(dr,"CODE",{});var ir=r(lt);Es=n(ir,'headers = { "authorization" : "Bearer $token" }'),ir.forEach(t),dr.forEach(t),H.forEach(t),ys=i(k),y=o(k,"TR",{});var Y=r(y);nt=o(Y,"TD",{});var cr=r(nt);dt=o(cr,"CODE",{});var hr=r(dt);bs=n(hr,"GET"),hr.forEach(t),cr.forEach(t),ws=i(Y),it=o(Y,"TD",{});var fr=r(it);ct=o(fr,"CODE",{});var ur=r(ct);Ts=n(ur,"/api/datasets/{repo_id}/user-access-request/rejected"),ur.forEach(t),fr.forEach(t),$s=i(Y),ht=o(Y,"TD",{});var pr=r(ht);Ds=n(pr,"Retrieve the list of rejected access requests for the given dataset."),pr.forEach(t),ks=i(Y),ft=o(Y,"TD",{});var vr=r(ft);ut=o(vr,"CODE",{});var mr=r(ut);Ms=n(mr,'headers = { "authorization" : "Bearer $token" }'),mr.forEach(t),vr.forEach(t),Y.forEach(t),qs=i(k),b=o(k,"TR",{});var V=r(b);pt=o(V,"TD",{});var gr=r(pt);vt=o(gr,"CODE",{});var _r=r(vt);xs=n(_r,"POST"),_r.forEach(t),gr.forEach(t),Cs=i(V),mt=o(V,"TD",{});var Er=r(mt);gt=o(Er,"CODE",{});var yr=r(gt);js=n(yr,"/api/datasets/{repo_id}/user-access-request/handle"),yr.forEach(t),Er.forEach(t),Gs=i(V),ee=o(V,"TD",{});var fa=r(ee);As=n(fa,"Change the status of a given access request to "),_t=o(fa,"CODE",{});var br=r(_t);Bs=n(br,"status"),br.forEach(t),Os=n(fa,"."),fa.forEach(t),Is=i(V),te=o(V,"TD",{});var ua=r(te);Et=o(ua,"CODE",{});var wr=r(Et);Ss=n(wr,'headers = { "authorization" : "Bearer $token" }'),wr.forEach(t),Rs=i(ua),yt=o(ua,"CODE",{});var Tr=r(yt);Ps=n(Tr,'json = { "status": "accepted" | "rejected" | "pending", "user": "username" }'),Tr.forEach(t),ua.forEach(t),V.forEach(t),Ns=i(k),w=o(k,"TR",{});var F=r(w);bt=o(F,"TD",{});var $r=r(bt);wt=o($r,"CODE",{});var Dr=r(wt);Us=n(Dr,"POST"),Dr.forEach(t),$r.forEach(t),Js=i(F),Tt=o(F,"TD",{});var kr=r(Tt);$t=o(kr,"CODE",{});var Mr=r($t);zs=n(Mr,"/api/datasets/{repo_id}/user-access-request/grant"),Mr.forEach(t),kr.forEach(t),Zs=i(F),Dt=o(F,"TD",{});var qr=r(Dt);Ws=n(qr,"Allow a specific user to access your repository."),qr.forEach(t),Hs=i(F),ae=o(F,"TD",{});var pa=r(ae);kt=o(pa,"CODE",{});var xr=r(kt);Ys=n(xr,'headers = { "authorization" : "Bearer $token" }'),xr.forEach(t),Vs=i(pa),Mt=o(pa,"CODE",{});var Cr=r(Mt);Fs=n(Cr,'json = { "user": "username" }'),Cr.forEach(t),pa.forEach(t),F.forEach(t),k.forEach(t),ha.forEach(t),Lt=i(a),p=o(a,"P",{});var M=r(p);Ls=n(M,"The base URL for the HTTP endpoints above is "),qt=o(M,"CODE",{});var jr=r(qt);Xs=n(jr,"https://huggingface.co"),jr.forEach(t),Qs=n(M,". The "),xt=o(M,"CODE",{});var Gr=r(xt);Ks=n(Gr,"$token"),Gr.forEach(t),eo=n(M," to pass as a bearer token can be generated from "),se=o(M,"A",{href:!0,rel:!0});var Ar=r(se);to=n(Ar,"your user settings"),Ar.forEach(t),ao=n(M,". It must have "),Ct=o(M,"CODE",{});var Br=r(Ct);so=n(Br,"write"),Br.forEach(t),oo=n(M," access to the gated repository."),M.forEach(t),Xt=i(a),B=o(a,"H3",{class:!0});var va=r(B);J=o(va,"A",{id:!0,class:!0,href:!0});var Or=r(J);jt=o(Or,"SPAN",{});var Ir=r(jt);de(oe.$$.fragment,Ir),Ir.forEach(t),Or.forEach(t),ro=i(va),Gt=o(va,"SPAN",{});var Sr=r(Gt);lo=n(Sr,"Notifications settings"),Sr.forEach(t),va.forEach(t),Qt=i(a),Ee=o(a,"P",{});var Rr=r(Ee);no=n(Rr,`By default, notifications for new pending access requests are sent once a day via email.
When the repo lives in an organization, those emails are sent to the first 5 admins of the organization.`),Rr.forEach(t),Kt=i(a),ye=o(a,"P",{});var Pr=r(ye);io=n(Pr,`You can customize the way you receive those notifications from the gated dataset\u2019s settings page.
You can choose whether to receive notifications for new pending access requests in bulk once a day or in real-time.
You can also set a custom email to send those notifications to.`),Pr.forEach(t),ea=i(a),O=o(a,"DIV",{class:!0});var ma=r(O);be=o(ma,"IMG",{class:!0,src:!0}),co=i(ma),we=o(ma,"IMG",{class:!0,src:!0}),ma.forEach(t),ta=i(a),I=o(a,"H2",{class:!0});var ga=r(I);z=o(ga,"A",{id:!0,class:!0,href:!0});var Nr=r(z);At=o(Nr,"SPAN",{});var Ur=r(At);de(re.$$.fragment,Ur),Ur.forEach(t),Nr.forEach(t),ho=i(ga),Bt=o(ga,"SPAN",{});var Jr=r(Bt);fo=n(Jr,"Additional Customization"),Jr.forEach(t),ga.forEach(t),aa=i(a),D=o(a,"P",{});var De=r(D);uo=n(De,"In some cases, you might also want to modify the text in the heading of the gate as well as the text in the button. For those use cases you can modify "),Ot=o(De,"CODE",{});var zr=r(Ot);po=n(zr,"extra_gated_heading"),zr.forEach(t),vo=n(De," and "),It=o(De,"CODE",{});var Zr=r(It);mo=n(Zr,"extra_gated_button_content"),Zr.forEach(t),go=n(De,"."),De.forEach(t),sa=i(a),de(le.$$.fragment,a),this.h()},h(){h(q,"name","hf:doc:metadata"),h(q,"content",JSON.stringify(Kr)),h(S,"id","gated-datasets"),h(S,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(S,"href","#gated-datasets"),h(x,"class","relative group"),h(R,"id","modifying-the-prompt"),h(R,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(R,"href","#modifying-the-prompt"),h(C,"class","relative group"),h(ue,"class","block dark:hidden"),ke(ue.src,Eo="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/datasets-gated.png")||h(ue,"src",Eo),h(pe,"class","hidden dark:block"),ke(pe.src,yo="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/datasets-gated-dark.png")||h(pe,"src",yo),h(j,"class","flex justify-center"),h(ve,"href","./datasets-cards"),h(P,"id","manual-approval"),h(P,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(P,"href","#manual-approval"),h(G,"class","relative group"),h(me,"class","block dark:hidden"),ke(me.src,bo="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/datasets-gated-manual-approval.png")||h(me,"src",bo),h(ge,"class","hidden dark:block"),ke(ge.src,wo="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/datasets-gated-manual-approval-dark.png")||h(ge,"src",wo),h(A,"class","flex justify-center"),h(se,"href","https://huggingface.co/settings/tokens"),h(se,"rel","nofollow"),h(J,"id","notifications-settings"),h(J,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(J,"href","#notifications-settings"),h(B,"class","relative group"),h(be,"class","block dark:hidden"),ke(be.src,To="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/models-gated-notifications.png")||h(be,"src",To),h(we,"class","hidden dark:block"),ke(we.src,$o="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/models-gated-notifications-dark.png")||h(we,"src",$o),h(O,"class","flex justify-center"),h(z,"id","additional-customization"),h(z,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),h(z,"href","#additional-customization"),h(I,"class","relative group")},m(a,c){e(document.head,q),f(a,Rt,c),f(a,x,c),e(x,S),e(S,Me),ie(L,Me,null),e(x,_a),e(x,qe),e(qe,Ea),f(a,Pt,c),f(a,T,c),e(T,ya),e(T,xe),e(xe,ba),e(T,wa),e(T,Ce),e(Ce,Ta),e(T,$a),f(a,Nt,c),f(a,C,c),e(C,R),e(R,je),ie(X,je,null),e(C,Da),e(C,Ge),e(Ge,ka),f(a,Ut,c),f(a,u,c),e(u,Ma),e(u,Ae),e(Ae,qa),e(u,xa),e(u,Be),e(Be,Ca),e(u,ja),e(u,Oe),e(Oe,Ga),e(u,Aa),e(u,Ie),e(Ie,Ba),e(u,Oa),e(u,Se),e(Se,Ia),e(u,Sa),f(a,Jt,c),ie(Q,a,c),f(a,zt,c),f(a,j,c),e(j,ue),e(j,Ra),e(j,pe),f(a,Zt,c),f(a,$,c),e($,Pa),e($,Re),e(Re,Na),e($,Ua),e($,ve),e(ve,Ja),e($,za),f(a,Wt,c),f(a,G,c),e(G,P),e(P,Pe),ie(K,Pe,null),e(G,Za),e(G,Ne),e(Ne,Wa),f(a,Ht,c),f(a,N,c),e(N,Ha),e(N,Ue),e(Ue,Ya),e(N,Va),f(a,Yt,c),f(a,A,c),e(A,me),e(A,Fa),e(A,ge),f(a,Vt,c),f(a,_e,c),e(_e,La),f(a,Ft,c),f(a,U,c),e(U,Je),e(Je,g),e(g,ze),e(ze,Xa),e(g,Qa),e(g,Ze),e(Ze,Ka),e(g,es),e(g,We),e(We,ts),e(g,as),e(g,He),e(He,ss),e(U,os),e(U,v),e(v,_),e(_,Ye),e(Ye,Ve),e(Ve,rs),e(_,ls),e(_,Fe),e(Fe,Le),e(Le,ns),e(_,ds),e(_,Xe),e(Xe,is),e(_,cs),e(_,Qe),e(Qe,Ke),e(Ke,hs),e(v,fs),e(v,E),e(E,et),e(et,tt),e(tt,us),e(E,ps),e(E,at),e(at,st),e(st,vs),e(E,ms),e(E,ot),e(ot,gs),e(E,_s),e(E,rt),e(rt,lt),e(lt,Es),e(v,ys),e(v,y),e(y,nt),e(nt,dt),e(dt,bs),e(y,ws),e(y,it),e(it,ct),e(ct,Ts),e(y,$s),e(y,ht),e(ht,Ds),e(y,ks),e(y,ft),e(ft,ut),e(ut,Ms),e(v,qs),e(v,b),e(b,pt),e(pt,vt),e(vt,xs),e(b,Cs),e(b,mt),e(mt,gt),e(gt,js),e(b,Gs),e(b,ee),e(ee,As),e(ee,_t),e(_t,Bs),e(ee,Os),e(b,Is),e(b,te),e(te,Et),e(Et,Ss),e(te,Rs),e(te,yt),e(yt,Ps),e(v,Ns),e(v,w),e(w,bt),e(bt,wt),e(wt,Us),e(w,Js),e(w,Tt),e(Tt,$t),e($t,zs),e(w,Zs),e(w,Dt),e(Dt,Ws),e(w,Hs),e(w,ae),e(ae,kt),e(kt,Ys),e(ae,Vs),e(ae,Mt),e(Mt,Fs),f(a,Lt,c),f(a,p,c),e(p,Ls),e(p,qt),e(qt,Xs),e(p,Qs),e(p,xt),e(xt,Ks),e(p,eo),e(p,se),e(se,to),e(p,ao),e(p,Ct),e(Ct,so),e(p,oo),f(a,Xt,c),f(a,B,c),e(B,J),e(J,jt),ie(oe,jt,null),e(B,ro),e(B,Gt),e(Gt,lo),f(a,Qt,c),f(a,Ee,c),e(Ee,no),f(a,Kt,c),f(a,ye,c),e(ye,io),f(a,ea,c),f(a,O,c),e(O,be),e(O,co),e(O,we),f(a,ta,c),f(a,I,c),e(I,z),e(z,At),ie(re,At,null),e(I,ho),e(I,Bt),e(Bt,fo),f(a,aa,c),f(a,D,c),e(D,uo),e(D,Ot),e(Ot,po),e(D,vo),e(D,It),e(It,mo),e(D,go),f(a,sa,c),ie(le,a,c),oa=!0},p:Lr,i(a){oa||(ce(L.$$.fragment,a),ce(X.$$.fragment,a),ce(Q.$$.fragment,a),ce(K.$$.fragment,a),ce(oe.$$.fragment,a),ce(re.$$.fragment,a),ce(le.$$.fragment,a),oa=!0)},o(a){he(L.$$.fragment,a),he(X.$$.fragment,a),he(Q.$$.fragment,a),he(K.$$.fragment,a),he(oe.$$.fragment,a),he(re.$$.fragment,a),he(le.$$.fragment,a),oa=!1},d(a){t(q),a&&t(Rt),a&&t(x),fe(L),a&&t(Pt),a&&t(T),a&&t(Nt),a&&t(C),fe(X),a&&t(Ut),a&&t(u),a&&t(Jt),fe(Q,a),a&&t(zt),a&&t(j),a&&t(Zt),a&&t($),a&&t(Wt),a&&t(G),fe(K),a&&t(Ht),a&&t(N),a&&t(Yt),a&&t(A),a&&t(Vt),a&&t(_e),a&&t(Ft),a&&t(U),a&&t(Lt),a&&t(p),a&&t(Xt),a&&t(B),fe(oe),a&&t(Qt),a&&t(Ee),a&&t(Kt),a&&t(ye),a&&t(ea),a&&t(O),a&&t(ta),a&&t(I),fe(re),a&&t(aa),a&&t(D),a&&t(sa),fe(le,a)}}}const Kr={local:"gated-datasets",sections:[{local:"modifying-the-prompt",title:"Modifying the prompt "},{local:"manual-approval",sections:[{local:"notifications-settings",title:"Notifications settings"}],title:"Manual approval"},{local:"additional-customization",title:"Additional Customization"}],title:"Gated datasets"};function el(_o){return Xr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ol extends Hr{constructor(q){super();Yr(this,q,el,Qr,Vr,{})}}export{ol as default,Kr as metadata};
