Buckets:

hf-doc-build/doc-dev / 101-course /pr_4 /en /_app /immutable /chunks /CourseFloatingBanner.6fa6023e.js
rtrm's picture
download
raw
10.5 kB
import{s as te,c as S,u as D,g as C,d as I,o as ce,t as fe,b as ue,f as v,n as p}from"./scheduler.1d51f4c0.js";import{S as se,i as le,g as M,s as Q,h as w,j as W,c as B,f as b,k as f,a as L,y,D as _e,d,t as m,r as Y,u as E,v as T,w as $,e as O,p as ne,b as oe,z as ae}from"./index.fda43871.js";import{e as x}from"./each.e59479a4.js";import{D as re,a as ie}from"./DropdownEntry.fb436240.js";const de=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global,{window:me}=de,ge=o=>({}),F=o=>({slot:"button"});function U(o,t,n){const s=o.slice();return s[11]=t[n].label,s[12]=t[n].value,s}const he=o=>({}),V=o=>({slot:"menu"}),be=o=>({}),Z=o=>({slot:"button"});function X(o,t,n){const s=o.slice();return s[11]=t[n].label,s[12]=t[n].value,s}const Me=o=>({}),R=o=>({slot:"menu"}),we=o=>({}),J=o=>({});function pe(o){let t,n;return t=new re({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[ze],button:[ke]},$$scope:{ctx:o}}}),{c(){Y(t.$$.fragment)},l(s){E(t.$$.fragment,s)},m(s,e){T(t,s,e),n=!0},p(s,e){const l={};e&1024&&(l.$$scope={dirty:e,ctx:s}),t.$set(l)},i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){m(t.$$.fragment,s),n=!1},d(s){$(t,s)}}}function Le(o){let t,n,s;return{c(){t=M("a"),n=M("img"),this.h()},l(e){t=w(e,"A",{href:!0,target:!0});var l=W(t);n=w(l,"IMG",{alt:!0,class:!0,src:!0}),l.forEach(b),this.h()},h(){f(n,"alt","Open In Colab"),f(n,"class","!m-0"),v(n.src,s="https://colab.research.google.com/assets/colab-badge.svg")||f(n,"src",s),f(t,"href",o[2][0].value),f(t,"target","_blank")},m(e,l){L(e,t,l),y(t,n)},p,i:p,o:p,d(e){e&&b(t)}}}function Ne(o){let t,n;return{c(){t=M("img"),this.h()},l(s){t=w(s,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){f(t,"alt","Open In Colab"),f(t,"class","!m-0"),v(t.src,n="https://colab.research.google.com/assets/colab-badge.svg")||f(t,"src",n)},m(s,e){L(s,t,e)},p,d(s){s&&b(t)}}}function ke(o){let t;const n=o[6].default,s=S(n,o,o[10],Z),e=s||Ne();return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){s&&s.p&&(!t||a&1024)&&D(s,n,l,l[10],t?I(n,l[10],a,be):C(l[10]),Z)},i(l){t||(d(e,l),t=!0)},o(l){m(e,l),t=!1},d(l){e&&e.d(l)}}}function q(o){let t,n;function s(){return o[7](o[12])}return t=new ie({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:o[11],onClick:s,useDeprecatedJS:!1}}),{c(){Y(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){T(t,e,l),n=!0},p(e,l){o=e},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){m(t.$$.fragment,e),n=!1},d(e){$(t,e)}}}function je(o){let t,n,s=x(o[2]),e=[];for(let a=0;a<s.length;a+=1)e[a]=q(X(o,s,a));const l=a=>m(e[a],1,1,()=>{e[a]=null});return{c(){for(let a=0;a<e.length;a+=1)e[a].c();t=O()},l(a){for(let r=0;r<e.length;r+=1)e[r].l(a);t=O()},m(a,r){for(let i=0;i<e.length;i+=1)e[i]&&e[i].m(a,r);L(a,t,r),n=!0},p(a,r){if(r&4){s=x(a[2]);let i;for(i=0;i<s.length;i+=1){const g=X(a,s,i);e[i]?(e[i].p(g,r),d(e[i],1)):(e[i]=q(g),e[i].c(),d(e[i],1),e[i].m(t.parentNode,t))}for(ne(),i=s.length;i<e.length;i+=1)l(i);oe()}},i(a){if(!n){for(let r=0;r<s.length;r+=1)d(e[r]);n=!0}},o(a){e=e.filter(Boolean);for(let r=0;r<e.length;r+=1)m(e[r]);n=!1},d(a){a&&b(t),ae(e,a)}}}function ze(o){let t;const n=o[6].default,s=S(n,o,o[10],R),e=s||je(o);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){s&&s.p&&(!t||a&1024)&&D(s,n,l,l[10],t?I(n,l[10],a,Me):C(l[10]),R)},i(l){t||(d(e,l),t=!0)},o(l){m(e,l),t=!1},d(l){e&&e.d(l)}}}function ye(o){let t,n;return t=new re({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[ve],button:[Ce]},$$scope:{ctx:o}}}),{c(){Y(t.$$.fragment)},l(s){E(t.$$.fragment,s)},m(s,e){T(t,s,e),n=!0},p(s,e){const l={};e&1024&&(l.$$scope={dirty:e,ctx:s}),t.$set(l)},i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){m(t.$$.fragment,s),n=!1},d(s){$(t,s)}}}function Se(o){let t,n,s;return{c(){t=M("a"),n=M("img"),this.h()},l(e){t=w(e,"A",{href:!0,target:!0});var l=W(t);n=w(l,"IMG",{alt:!0,class:!0,src:!0}),l.forEach(b),this.h()},h(){f(n,"alt","Open In Studio Lab"),f(n,"class","!m-0"),v(n.src,s="https://studiolab.sagemaker.aws/studiolab.svg")||f(n,"src",s),f(t,"href",o[3][0].value),f(t,"target","_blank")},m(e,l){L(e,t,l),y(t,n)},p,i:p,o:p,d(e){e&&b(t)}}}function De(o){let t,n;return{c(){t=M("img"),this.h()},l(s){t=w(s,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){f(t,"alt","Open In Studio Lab"),f(t,"class","!m-0"),v(t.src,n="https://studiolab.sagemaker.aws/studiolab.svg")||f(t,"src",n)},m(s,e){L(s,t,e)},p,d(s){s&&b(t)}}}function Ce(o){let t;const n=o[6].default,s=S(n,o,o[10],F),e=s||De();return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){s&&s.p&&(!t||a&1024)&&D(s,n,l,l[10],t?I(n,l[10],a,ge):C(l[10]),F)},i(l){t||(d(e,l),t=!0)},o(l){m(e,l),t=!1},d(l){e&&e.d(l)}}}function K(o){let t,n;function s(){return o[8](o[12])}return t=new ie({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:o[11],onClick:s,useDeprecatedJS:!1}}),{c(){Y(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){T(t,e,l),n=!0},p(e,l){o=e},i(e){n||(d(t.$$.fragment,e),n=!0)},o(e){m(t.$$.fragment,e),n=!1},d(e){$(t,e)}}}function Ie(o){let t,n,s=x(o[3]),e=[];for(let a=0;a<s.length;a+=1)e[a]=K(U(o,s,a));const l=a=>m(e[a],1,1,()=>{e[a]=null});return{c(){for(let a=0;a<e.length;a+=1)e[a].c();t=O()},l(a){for(let r=0;r<e.length;r+=1)e[r].l(a);t=O()},m(a,r){for(let i=0;i<e.length;i+=1)e[i]&&e[i].m(a,r);L(a,t,r),n=!0},p(a,r){if(r&8){s=x(a[3]);let i;for(i=0;i<s.length;i+=1){const g=U(a,s,i);e[i]?(e[i].p(g,r),d(e[i],1)):(e[i]=K(g),e[i].c(),d(e[i],1),e[i].m(t.parentNode,t))}for(ne(),i=s.length;i<e.length;i+=1)l(i);oe()}},i(a){if(!n){for(let r=0;r<s.length;r+=1)d(e[r]);n=!0}},o(a){e=e.filter(Boolean);for(let r=0;r<e.length;r+=1)m(e[r]);n=!1},d(a){a&&b(t),ae(e,a)}}}function ve(o){let t;const n=o[6].default,s=S(n,o,o[10],V),e=s||Ie(o);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,a){e&&e.m(l,a),t=!0},p(l,a){s&&s.p&&(!t||a&1024)&&D(s,n,l,l[10],t?I(n,l[10],a,he):C(l[10]),V)},i(l){t||(d(e,l),t=!0)},o(l){m(e,l),t=!1},d(l){e&&e.d(l)}}}function Ye(o){let t,n,s,e,l,a,r,i,g,N,G;const z=o[6].alwaysVisible,h=S(z,o,o[10],J),u=[Le,pe],k=[];function A(c,_){return c[2].length===1?0:c[2].length>1?1:-1}~(s=A(o))&&(e=k[s]=u[s](o));const H=[Se,ye],j=[];function P(c,_){return c[3].length===1?0:c[3].length>1?1:-1}return~(a=P(o))&&(r=j[a]=H[a](o)),{c(){t=M("div"),h&&h.c(),n=Q(),e&&e.c(),l=Q(),r&&r.c(),this.h()},l(c){t=w(c,"DIV",{class:!0});var _=W(t);h&&h.l(_),n=B(_),e&&e.l(_),l=B(_),r&&r.l(_),_.forEach(b),this.h()},h(){f(t,"class",i="flex space-x-1 "+o[0])},m(c,_){L(c,t,_),h&&h.m(t,null),y(t,n),~s&&k[s].m(t,null),y(t,l),~a&&j[a].m(t,null),o[9](t),g=!0,N||(G=_e(me,"resize",o[4]),N=!0)},p(c,[_]){h&&h.p&&(!g||_&1024)&&D(h,z,c,c[10],g?I(z,c[10],_,we):C(c[10]),J),e&&e.p(c,_),r&&r.p(c,_),(!g||_&1&&i!==(i="flex space-x-1 "+c[0]))&&f(t,"class",i)},i(c){g||(d(h,c),d(e),d(r),g=!0)},o(c){m(h,c),m(e),m(r),g=!1},d(c){c&&b(t),h&&h.d(c),~s&&k[s].d(),~a&&j[a].d(),o[9](null),N=!1,G()}}}function ee(o){window.open(o)}function Ee(o,t,n){let{$$slots:s={},$$scope:e}=t,{options:l=[]}=t,{classNames:a=""}=t,r;const i=l.filter(u=>u.value.includes("colab.research.google.com")),g=l.filter(u=>u.value.includes("studiolab.sagemaker.aws"));function N(){const u=document.querySelector(".prose-doc h1"),k=document.querySelector(".prose-doc h1 > span");if(u&&k){const{width:A}=u.getBoundingClientRect(),{width:H}=k.getBoundingClientRect();let j=0;for(let c=0;c<r.children.length;c++){const _=r.children.item(c);_&&(j+=_.clientWidth)}const P=20;A-H<j+P?r.classList.remove("absolute"):r.classList.add("absolute")}}ce(()=>{(async()=>(await fe(),N()))()});const G=u=>ee(u),z=u=>ee(u);function h(u){ue[u?"unshift":"push"](()=>{r=u,n(1,r)})}return o.$$set=u=>{"options"in u&&n(5,l=u.options),"classNames"in u&&n(0,a=u.classNames),"$$scope"in u&&n(10,e=u.$$scope)},[a,r,i,g,N,l,s,G,z,h,e]}class Te extends se{constructor(t){super(),le(this,t,Ee,Ye,te,{options:5,classNames:0})}}function $e(o){let t,n,s;return{c(){t=M("a"),n=M("img"),this.h()},l(e){t=w(e,"A",{href:!0,target:!0});var l=W(t);n=w(l,"IMG",{alt:!0,class:!0,src:!0}),l.forEach(b),this.h()},h(){f(n,"alt","Ask a Question"),f(n,"class","!m-0"),v(n.src,s="https://img.shields.io/badge/Ask%20a%20question-ffcb4c.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTEgMTA0IDEwNiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMyMzFmMjA7fS5jbHMtMntmaWxsOiNmZmY5YWU7fS5jbHMtM3tmaWxsOiMwMGFlZWY7fS5jbHMtNHtmaWxsOiMwMGE5NGY7fS5jbHMtNXtmaWxsOiNmMTVkMjI7fS5jbHMtNntmaWxsOiNlMzFiMjM7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5EaXNjb3Vyc2VfbG9nbzwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiPjxnIGlkPSJMYXllcl8zIj48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik01MS44NywwQzIzLjcxLDAsMCwyMi44MywwLDUxYzAsLjkxLDAsNTIuODEsMCw1Mi44MWw1MS44Ni0uMDVjMjguMTYsMCw1MS0yMy43MSw1MS01MS44N1M4MCwwLDUxLjg3LDBaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNTIuMzcsMTkuNzRBMzEuNjIsMzEuNjIsMCwwLDAsMjQuNTgsNjYuNDFsLTUuNzIsMTguNEwzOS40LDgwLjE3YTMxLjYxLDMxLjYxLDAsMSwwLDEzLTYwLjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTc3LjQ1LDMyLjEyYTMxLjYsMzEuNiwwLDAsMS0zOC4wNSw0OEwxOC44Niw4NC44MmwyMC45MS0yLjQ3QTMxLjYsMzEuNiwwLDAsMCw3Ny40NSwzMi4xMloiLz48cGF0aCBjbGFzcz0iY2xzLTQiIGQ9Ik03MS42MywyNi4yOUEzMS42LDMxLjYsMCwwLDEsMzguOCw3OEwxOC44Niw4NC44MiwzOS40LDgwLjE3QTMxLjYsMzEuNiwwLDAsMCw3MS42MywyNi4yOVoiLz48cGF0aCBjbGFzcz0iY2xzLTUiIGQ9Ik0yNi40Nyw2Ny4xMWEzMS42MSwzMS42MSwwLDAsMSw1MS0zNUEzMS42MSwzMS42MSwwLDAsMCwyNC41OCw2Ni40MWwtNS43MiwxOC40WiIvPjxwYXRoIGNsYXNzPSJjbHMtNiIgZD0iTTI0LjU4LDY2LjQxQTMxLjYxLDMxLjYxLDAsMCwxLDcxLjYzLDI2LjI5YTMxLjYxLDMxLjYxLDAsMCwwLTQ5LDM5LjYzbC0zLjc2LDE4LjlaIi8+PC9nPjwvZz48L3N2Zz4=")||f(n,"src",s),f(t,"href",o[2]),f(t,"target","_blank")},m(e,l){L(e,t,l),y(t,n)},p(e,l){l&4&&f(t,"href",e[2])},d(e){e&&b(t)}}}function Ge(o){let t,n;return t=new Te({props:{options:o[0],classNames:o[1],$$slots:{alwaysVisible:[$e]},$$scope:{ctx:o}}}),{c(){Y(t.$$.fragment)},l(s){E(t.$$.fragment,s)},m(s,e){T(t,s,e),n=!0},p(s,[e]){const l={};e&1&&(l.options=s[0]),e&2&&(l.classNames=s[1]),e&20&&(l.$$scope={dirty:e,ctx:s}),t.$set(l)},i(s){n||(d(t.$$.fragment,s),n=!0)},o(s){m(t.$$.fragment,s),n=!1},d(s){$(t,s)}}}function Oe(o,t,n){let{chapter:s}=t,{notebooks:e=[]}=t,{classNames:l=""}=t,{askForHelpUrl:a=`https://discuss.huggingface.co/t/chapter-${s}-questions`}=t;return o.$$set=r=>{"chapter"in r&&n(3,s=r.chapter),"notebooks"in r&&n(0,e=r.notebooks),"classNames"in r&&n(1,l=r.classNames),"askForHelpUrl"in r&&n(2,a=r.askForHelpUrl)},[e,l,a,s]}class Pe extends se{constructor(t){super(),le(this,t,Oe,Ge,te,{chapter:3,notebooks:0,classNames:1,askForHelpUrl:2})}}export{Pe as C};

Xet Storage Details

Size:
10.5 kB
·
Xet hash:
23d2d6133c67414e7b7968137c706157d87222452e6961360bb4a5d90d780ad8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.