import{S as ms,i as ps,s as ds,e as l,k as m,w as O,t as s,M as fs,c as o,d as t,m as p,a as i,x as V,h as r,b as u,N as xt,G as a,g as c,y as W,L as hs,q as X,o as U,B as K,v as gs}from"../../chunks/vendor-hf-doc-builder.js";import{I as qt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as $t}from"../../chunks/CodeBlock-hf-doc-builder.js";import{C as vs}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";function bs(yt){let P,Ae,k,j,re,S,sa,Q,ra,le,la,Be,C,Ge,d,oa,oe,ia,na,ie,ua,ca,ne,ma,pa,ue,da,fa,ce,ha,ga,me,va,ba,Se,T,M,pe,J,Ea,Y,wa,de,_a,Ce,w,xa,fe,qa,$a,he,ya,Pa,Z,ka,Ta,Je,h,Ha,ge,ja,Ma,ve,Ia,Aa,be,Ba,Ga,z,Sa,Ca,ze,F,Fe,ee,Ja,Le,v,Pt,Ne,q,za,L,Fa,La,Ee,Na,Ra,Re,H,I,we,N,Da,ae,Oa,_e,Va,De,f,Wa,xe,Xa,Ua,qe,Ka,Qa,$e,Ya,Za,ye,et,at,Pe,tt,st,Oe,A,rt,ke,lt,ot,Ve,R,We,b,kt,Xe,$,it,Te,nt,ut,He,ct,mt,Ue,D,Ke,E,Tt,Qe,_,pt,je,dt,ft,Me,ht,gt,Ie,vt,bt,Ye;return S=new qt({}),C=new vs({props:{chapter:9,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/fr/chapter9/section5.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/fr/chapter9/section5.ipynb"}]}}),J=new qt({}),F=new $t({props:{code:`import gradio as gr

title = "GPT-J-6B"
description = "Gradio Demo for GPT-J 6B, a transformer model trained using Ben Wang's Mesh Transformer JAX. 'GPT-J' refers to the class of model, while '6B' represents the number of trainable parameters. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
# D\xE9mo Gradio pour GPT-J 6B, un mod\xE8le de transformer entra\xEEn\xE9 avec le Mesh Transformer JAX de Ben Wang. GPT-J fait r\xE9f\xE9rence \xE0 la classe du mod\xE8le, tandis que '6B' repr\xE9sente le nombre de param\xE8tres entra\xEEnables. Pour l'utiliser, il suffit d'ajouter votre texte, ou de cliquer sur l'un des exemples pour le charger. Pour en savoir plus, consultez les liens ci-dessous.
article = "<p style='text-align: center'><a href='https://github.com/kingoflolz/mesh-transformer-jax' target='_blank'>GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model</a></p>"
# GPT-J-6B : Un mod\xE8le linguistique autor\xE9gressif \xE0 6 milliards de param\xE8tres
examples = [
    ["The tower is 324 metres (1,063 ft) tall,"],
    # La tour mesure 324 m\xE8tres (1 063 pieds) de haut,
    ["The Moon's orbit around Earth has"],
    # L'orbite de la Lune autour de la Terre a
    ["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
    # Le bassin de Borealis dans l'h\xE9misph\xE8re nord couvre 40 %.
]
gr.Interface.load(
    "huggingface/EleutherAI/gpt-j-6B",
    inputs=gr.Textbox(lines=5, label="Input Text"),
    title=title,
    description=description,
    article=article,
    examples=examples,
    enable_queue=True,
).launch()`,highlighted:`<span class="hljs-keyword">import</span> gradio <span class="hljs-keyword">as</span> gr

title = <span class="hljs-string">&quot;GPT-J-6B&quot;</span>
description = <span class="hljs-string">&quot;Gradio Demo for GPT-J 6B, a transformer model trained using Ben Wang&#x27;s Mesh Transformer JAX. &#x27;GPT-J&#x27; refers to the class of model, while &#x27;6B&#x27; represents the number of trainable parameters. To use it, simply add your text, or click one of the examples to load them. Read more at the links below.&quot;</span>
<span class="hljs-comment"># D\xE9mo Gradio pour GPT-J 6B, un mod\xE8le de transformer entra\xEEn\xE9 avec le Mesh Transformer JAX de Ben Wang. GPT-J fait r\xE9f\xE9rence \xE0 la classe du mod\xE8le, tandis que &#x27;6B&#x27; repr\xE9sente le nombre de param\xE8tres entra\xEEnables. Pour l&#x27;utiliser, il suffit d&#x27;ajouter votre texte, ou de cliquer sur l&#x27;un des exemples pour le charger. Pour en savoir plus, consultez les liens ci-dessous.</span>
article = <span class="hljs-string">&quot;&lt;p style=&#x27;text-align: center&#x27;&gt;&lt;a href=&#x27;https://github.com/kingoflolz/mesh-transformer-jax&#x27; target=&#x27;_blank&#x27;&gt;GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model&lt;/a&gt;&lt;/p&gt;&quot;</span>
<span class="hljs-comment"># GPT-J-6B : Un mod\xE8le linguistique autor\xE9gressif \xE0 6 milliards de param\xE8tres</span>
examples = [
    [<span class="hljs-string">&quot;The tower is 324 metres (1,063 ft) tall,&quot;</span>],
    <span class="hljs-comment"># La tour mesure 324 m\xE8tres (1 063 pieds) de haut,</span>
    [<span class="hljs-string">&quot;The Moon&#x27;s orbit around Earth has&quot;</span>],
    <span class="hljs-comment"># L&#x27;orbite de la Lune autour de la Terre a</span>
    [<span class="hljs-string">&quot;The smooth Borealis basin in the Northern Hemisphere covers 40%&quot;</span>],
    <span class="hljs-comment"># Le bassin de Borealis dans l&#x27;h\xE9misph\xE8re nord couvre 40 %.</span>
]
gr.Interface.load(
    <span class="hljs-string">&quot;huggingface/EleutherAI/gpt-j-6B&quot;</span>,
    inputs=gr.Textbox(lines=<span class="hljs-number">5</span>, label=<span class="hljs-string">&quot;Input Text&quot;</span>),
    title=title,
    description=description,
    article=article,
    examples=examples,
    enable_queue=<span class="hljs-literal">True</span>,
).launch()`}}),N=new qt({}),R=new $t({props:{code:'gr.Interface.load("spaces/abidlabs/remove-bg").launch()',highlighted:'gr.Interface.load(<span class="hljs-string">&quot;spaces/abidlabs/remove-bg&quot;</span>).launch()'}}),D=new $t({props:{code:`gr.Interface.load(
    "spaces/abidlabs/remove-bg", inputs="webcam", title="Remove your webcam background!"
).launch()`,highlighted:`gr.Interface.load(
    <span class="hljs-string">&quot;spaces/abidlabs/remove-bg&quot;</span>, inputs=<span class="hljs-string">&quot;webcam&quot;</span>, title=<span class="hljs-string">&quot;Remove your webcam background!&quot;</span>
).launch()`}}),{c(){P=l("meta"),Ae=m(),k=l("h1"),j=l("a"),re=l("span"),O(S.$$.fragment),sa=m(),Q=l("span"),ra=s("Int\xE9grations avec le "),le=l("i"),la=s("Hub d'Hugging Face"),Be=m(),O(C.$$.fragment),Ge=m(),d=l("p"),oa=s("Pour vous rendre la vie encore plus facile, "),oe=l("em"),ia=s("Gradio"),na=s(" s\u2019int\xE8gre directement avec "),ie=l("em"),ua=s("Hub"),ca=s(" et "),ne=l("em"),ma=s("Spaces"),pa=s(`.
Vous pouvez charger des d\xE9mos depuis le `),ue=l("em"),da=s("Hub"),fa=s(" et les "),ce=l("em"),ha=s("Spaces"),ga=s(" avec seulement "),me=l("em"),va=s("une ligne de code"),ba=s("."),Se=m(),T=l("h3"),M=l("a"),pe=l("span"),O(J.$$.fragment),Ea=m(),Y=l("span"),wa=s("Chargement de mod\xE8les depuis le "),de=l("i"),_a=s("Hub d'Hugging Face"),Ce=m(),w=l("p"),xa=s("Pour commencer, choisissez un des milliers de mod\xE8les qu\u2019"),fe=l("em"),qa=s("Hugging Face"),$a=s(" offre \xE0 travers le "),he=l("em"),ya=s("Hub"),Pa=s(", comme d\xE9crit dans le "),Z=l("a"),ka=s("chapitre 4"),Ta=s("."),Je=m(),h=l("p"),Ha=s("En utilisant la m\xE9thode sp\xE9ciale "),ge=l("code"),ja=s("Interface.load()"),Ma=s(", vous passez "),ve=l("code"),Ia=s('"model/"'),Aa=s(" (ou, de mani\xE8re \xE9quivalente, "),be=l("code"),Ba=s('"huggingface/"'),Ga=s(`) suivi du nom du mod\xE8le.
Par exemple, voici le code pour construire une d\xE9mo pour le `),z=l("a"),Sa=s("GPT-J"),Ca=s(", un grand mod\xE8le de langue, ajouter quelques exemples d\u2019entr\xE9es :"),ze=m(),O(F.$$.fragment),Fe=m(),ee=l("p"),Ja=s("Le code ci-dessus produira l\u2019interface ci-dessous :"),Le=m(),v=l("iframe"),Ne=m(),q=l("p"),za=s("Le chargement d\u2019un mod\xE8le de cette mani\xE8re utilise l\u2019"),L=l("a"),Fa=s("API d\u2019Inference"),La=s(" de "),Ee=l("em"),Na=s("Hugging Face"),Ra=s(" au lieu de charger le mod\xE8le en m\xE9moire. C\u2019est id\xE9al pour les mod\xE8les \xE9normes comme GPT-J ou T0pp qui n\xE9cessitent beaucoup de RAM."),Re=m(),H=l("h3"),I=l("a"),we=l("span"),O(N.$$.fragment),Da=m(),ae=l("span"),Oa=s("Chargement depuis "),_e=l("i"),Va=s("Hugging Face Spaces"),De=m(),f=l("p"),Wa=s("Pour charger n\u2019importe quel "),xe=l("em"),Xa=s("Space"),Ua=s(" depuis le "),qe=l("em"),Ka=s("Hub"),Qa=s(" et le recr\xE9er localement, vous pouvez passer "),$e=l("code"),Ya=s("spaces/"),Za=s(" \xE0 l\u2019"),ye=l("code"),et=s("Interface"),at=s(", suivi du nom du "),Pe=l("em"),tt=s("Space"),st=s("."),Oe=m(),A=l("p"),rt=s("Vous vous souvenez de la d\xE9mo de la section 1 qui supprime le fond d\u2019une image ? Chargeons-la \xE0 partir de "),ke=l("em"),lt=s("Hugging Face Spaces"),ot=s(" :"),Ve=m(),O(R.$$.fragment),We=m(),b=l("iframe"),Xe=m(),$=l("p"),it=s("L\u2019un des avantages du chargement de d\xE9mos \xE0 partir du "),Te=l("em"),nt=s("Hub"),ut=s(" ou de "),He=l("em"),ct=s("Spaces"),mt=s(" est que vous pouvez les personnaliser en rempla\xE7ant n\u2019importe lequel des param\xE8tres. Ici, nous ajoutons un titre et faisons en sorte qu\u2019elle fonctionne avec une webcam \xE0 la place :"),Ue=m(),O(D.$$.fragment),Ke=m(),E=l("iframe"),Qe=m(),_=l("p"),pt=s("Maintenant que nous avons explor\xE9 quelques fa\xE7ons d\u2019int\xE9grer "),je=l("em"),dt=s("Gradio"),ft=s(" avec le "),Me=l("em"),ht=s("Hub"),gt=s(", jetons un coup d\u2019oeil \xE0 certaines fonctionnalit\xE9s avanc\xE9es de la classe "),Ie=l("code"),vt=s("Interface"),bt=s(". C\u2019est le sujet de la prochaine section !"),this.h()},l(e){const n=fs('[data-svelte="svelte-1phssyn"]',document.head);P=o(n,"META",{name:!0,content:!0}),n.forEach(t),Ae=p(e),k=o(e,"H1",{class:!0});var Ze=i(k);j=o(Ze,"A",{id:!0,class:!0,href:!0});var Ht=i(j);re=o(Ht,"SPAN",{});var jt=i(re);V(S.$$.fragment,jt),jt.forEach(t),Ht.forEach(t),sa=p(Ze),Q=o(Ze,"SPAN",{});var Et=i(Q);ra=r(Et,"Int\xE9grations avec le "),le=o(Et,"I",{});var Mt=i(le);la=r(Mt,"Hub d'Hugging Face"),Mt.forEach(t),Et.forEach(t),Ze.forEach(t),Be=p(e),V(C.$$.fragment,e),Ge=p(e),d=o(e,"P",{});var g=i(d);oa=r(g,"Pour vous rendre la vie encore plus facile, "),oe=o(g,"EM",{});var It=i(oe);ia=r(It,"Gradio"),It.forEach(t),na=r(g," s\u2019int\xE8gre directement avec "),ie=o(g,"EM",{});var At=i(ie);ua=r(At,"Hub"),At.forEach(t),ca=r(g," et "),ne=o(g,"EM",{});var Bt=i(ne);ma=r(Bt,"Spaces"),Bt.forEach(t),pa=r(g,`.
Vous pouvez charger des d\xE9mos depuis le `),ue=o(g,"EM",{});var Gt=i(ue);da=r(Gt,"Hub"),Gt.forEach(t),fa=r(g," et les "),ce=o(g,"EM",{});var St=i(ce);ha=r(St,"Spaces"),St.forEach(t),ga=r(g," avec seulement "),me=o(g,"EM",{});var Ct=i(me);va=r(Ct,"une ligne de code"),Ct.forEach(t),ba=r(g,"."),g.forEach(t),Se=p(e),T=o(e,"H3",{class:!0});var ea=i(T);M=o(ea,"A",{id:!0,class:!0,href:!0});var Jt=i(M);pe=o(Jt,"SPAN",{});var zt=i(pe);V(J.$$.fragment,zt),zt.forEach(t),Jt.forEach(t),Ea=p(ea),Y=o(ea,"SPAN",{});var wt=i(Y);wa=r(wt,"Chargement de mod\xE8les depuis le "),de=o(wt,"I",{});var Ft=i(de);_a=r(Ft,"Hub d'Hugging Face"),Ft.forEach(t),wt.forEach(t),ea.forEach(t),Ce=p(e),w=o(e,"P",{});var B=i(w);xa=r(B,"Pour commencer, choisissez un des milliers de mod\xE8les qu\u2019"),fe=o(B,"EM",{});var Lt=i(fe);qa=r(Lt,"Hugging Face"),Lt.forEach(t),$a=r(B," offre \xE0 travers le "),he=o(B,"EM",{});var Nt=i(he);ya=r(Nt,"Hub"),Nt.forEach(t),Pa=r(B,", comme d\xE9crit dans le "),Z=o(B,"A",{href:!0});var Rt=i(Z);ka=r(Rt,"chapitre 4"),Rt.forEach(t),Ta=r(B,"."),B.forEach(t),Je=p(e),h=o(e,"P",{});var y=i(h);Ha=r(y,"En utilisant la m\xE9thode sp\xE9ciale "),ge=o(y,"CODE",{});var Dt=i(ge);ja=r(Dt,"Interface.load()"),Dt.forEach(t),Ma=r(y,", vous passez "),ve=o(y,"CODE",{});var Ot=i(ve);Ia=r(Ot,'"model/"'),Ot.forEach(t),Aa=r(y," (ou, de mani\xE8re \xE9quivalente, "),be=o(y,"CODE",{});var Vt=i(be);Ba=r(Vt,'"huggingface/"'),Vt.forEach(t),Ga=r(y,`) suivi du nom du mod\xE8le.
Par exemple, voici le code pour construire une d\xE9mo pour le `),z=o(y,"A",{href:!0,rel:!0});var Wt=i(z);Sa=r(Wt,"GPT-J"),Wt.forEach(t),Ca=r(y,", un grand mod\xE8le de langue, ajouter quelques exemples d\u2019entr\xE9es :"),y.forEach(t),ze=p(e),V(F.$$.fragment,e),Fe=p(e),ee=o(e,"P",{});var Xt=i(ee);Ja=r(Xt,"Le code ci-dessus produira l\u2019interface ci-dessous :"),Xt.forEach(t),Le=p(e),v=o(e,"IFRAME",{src:!0,frameborder:!0,height:!0,title:!0,class:!0,allow:!0,sandbox:!0}),i(v).forEach(t),Ne=p(e),q=o(e,"P",{});var te=i(q);za=r(te,"Le chargement d\u2019un mod\xE8le de cette mani\xE8re utilise l\u2019"),L=o(te,"A",{href:!0,rel:!0});var Ut=i(L);Fa=r(Ut,"API d\u2019Inference"),Ut.forEach(t),La=r(te," de "),Ee=o(te,"EM",{});var Kt=i(Ee);Na=r(Kt,"Hugging Face"),Kt.forEach(t),Ra=r(te," au lieu de charger le mod\xE8le en m\xE9moire. C\u2019est id\xE9al pour les mod\xE8les \xE9normes comme GPT-J ou T0pp qui n\xE9cessitent beaucoup de RAM."),te.forEach(t),Re=p(e),H=o(e,"H3",{class:!0});var aa=i(H);I=o(aa,"A",{id:!0,class:!0,href:!0});var Qt=i(I);we=o(Qt,"SPAN",{});var Yt=i(we);V(N.$$.fragment,Yt),Yt.forEach(t),Qt.forEach(t),Da=p(aa),ae=o(aa,"SPAN",{});var _t=i(ae);Oa=r(_t,"Chargement depuis "),_e=o(_t,"I",{});var Zt=i(_e);Va=r(Zt,"Hugging Face Spaces"),Zt.forEach(t),_t.forEach(t),aa.forEach(t),De=p(e),f=o(e,"P",{});var x=i(f);Wa=r(x,"Pour charger n\u2019importe quel "),xe=o(x,"EM",{});var es=i(xe);Xa=r(es,"Space"),es.forEach(t),Ua=r(x," depuis le "),qe=o(x,"EM",{});var as=i(qe);Ka=r(as,"Hub"),as.forEach(t),Qa=r(x," et le recr\xE9er localement, vous pouvez passer "),$e=o(x,"CODE",{});var ts=i($e);Ya=r(ts,"spaces/"),ts.forEach(t),Za=r(x," \xE0 l\u2019"),ye=o(x,"CODE",{});var ss=i(ye);et=r(ss,"Interface"),ss.forEach(t),at=r(x,", suivi du nom du "),Pe=o(x,"EM",{});var rs=i(Pe);tt=r(rs,"Space"),rs.forEach(t),st=r(x,"."),x.forEach(t),Oe=p(e),A=o(e,"P",{});var ta=i(A);rt=r(ta,"Vous vous souvenez de la d\xE9mo de la section 1 qui supprime le fond d\u2019une image ? Chargeons-la \xE0 partir de "),ke=o(ta,"EM",{});var ls=i(ke);lt=r(ls,"Hugging Face Spaces"),ls.forEach(t),ot=r(ta," :"),ta.forEach(t),Ve=p(e),V(R.$$.fragment,e),We=p(e),b=o(e,"IFRAME",{src:!0,frameborder:!0,height:!0,title:!0,class:!0,allow:!0,sandbox:!0}),i(b).forEach(t),Xe=p(e),$=o(e,"P",{});var se=i($);it=r(se,"L\u2019un des avantages du chargement de d\xE9mos \xE0 partir du "),Te=o(se,"EM",{});var os=i(Te);nt=r(os,"Hub"),os.forEach(t),ut=r(se," ou de "),He=o(se,"EM",{});var is=i(He);ct=r(is,"Spaces"),is.forEach(t),mt=r(se," est que vous pouvez les personnaliser en rempla\xE7ant n\u2019importe lequel des param\xE8tres. Ici, nous ajoutons un titre et faisons en sorte qu\u2019elle fonctionne avec une webcam \xE0 la place :"),se.forEach(t),Ue=p(e),V(D.$$.fragment,e),Ke=p(e),E=o(e,"IFRAME",{src:!0,frameborder:!0,height:!0,title:!0,class:!0,allow:!0,sandbox:!0}),i(E).forEach(t),Qe=p(e),_=o(e,"P",{});var G=i(_);pt=r(G,"Maintenant que nous avons explor\xE9 quelques fa\xE7ons d\u2019int\xE9grer "),je=o(G,"EM",{});var ns=i(je);dt=r(ns,"Gradio"),ns.forEach(t),ft=r(G," avec le "),Me=o(G,"EM",{});var us=i(Me);ht=r(us,"Hub"),us.forEach(t),gt=r(G,", jetons un coup d\u2019oeil \xE0 certaines fonctionnalit\xE9s avanc\xE9es de la classe "),Ie=o(G,"CODE",{});var cs=i(Ie);vt=r(cs,"Interface"),cs.forEach(t),bt=r(G,". C\u2019est le sujet de la prochaine section !"),G.forEach(t),this.h()},h(){u(P,"name","hf:doc:metadata"),u(P,"content",JSON.stringify(Es)),u(j,"id","intgrations-avec-le-ihub-dhugging-facei"),u(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"),u(j,"href","#intgrations-avec-le-ihub-dhugging-facei"),u(k,"class","relative group"),u(M,"id","chargement-de-modles-depuis-le-ihub-dhugging-facei"),u(M,"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"),u(M,"href","#chargement-de-modles-depuis-le-ihub-dhugging-facei"),u(T,"class","relative group"),u(Z,"href","/course/fr/chapter4/2"),u(z,"href","https://huggingface.co/EleutherAI/gpt-j-6B"),u(z,"rel","nofollow"),xt(v.src,Pt="https://hf.space/gradioiframe/akhaliq/gpt-j-6B/+")||u(v,"src",Pt),u(v,"frameborder","0"),u(v,"height","750"),u(v,"title","Gradio app"),u(v,"class","container p-0 flex-grow space-iframe"),u(v,"allow","accelerometer; ambient-light-sensor; autoplay; battery; camera; document-domain; encrypted-media; fullscreen; geolocation; gyroscope; layout-animations; legacy-image-formats; magnetometer; microphone; midi; oversized-images; payment; picture-in-picture; publickey-credentials-get; sync-xhr; usb; vr ; wake-lock; xr-spatial-tracking"),u(v,"sandbox","allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads"),u(L,"href","https://huggingface.co/inference-api"),u(L,"rel","nofollow"),u(I,"id","chargement-depuis-ihugging-face-spacesi"),u(I,"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"),u(I,"href","#chargement-depuis-ihugging-face-spacesi"),u(H,"class","relative group"),xt(b.src,kt="https://hf.space/gradioiframe/abidlabs/remove-bg/+")||u(b,"src",kt),u(b,"frameborder","0"),u(b,"height","650"),u(b,"title","Gradio app"),u(b,"class","container p-0 flex-grow space-iframe"),u(b,"allow","accelerometer; ambient-light-sensor; autoplay; battery; camera; document-domain; encrypted-media; fullscreen; geolocation; gyroscope; layout-animations; legacy-image-formats; magnetometer; microphone; midi; oversized-images; payment; picture-in-picture; publickey-credentials-get; sync-xhr; usb; vr ; wake-lock; xr-spatial-tracking"),u(b,"sandbox","allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads"),xt(E.src,Tt="https://hf.space/gradioiframe/course-demos/Remove-bg/+")||u(E,"src",Tt),u(E,"frameborder","0"),u(E,"height","550"),u(E,"title","Gradio app"),u(E,"class","container p-0 flex-grow space-iframe"),u(E,"allow","accelerometer; ambient-light-sensor; autoplay; battery; camera; document-domain; encrypted-media; fullscreen; geolocation; gyroscope; layout-animations; legacy-image-formats; magnetometer; microphone; midi; oversized-images; payment; picture-in-picture; publickey-credentials-get; sync-xhr; usb; vr ; wake-lock; xr-spatial-tracking"),u(E,"sandbox","allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-downloads")},m(e,n){a(document.head,P),c(e,Ae,n),c(e,k,n),a(k,j),a(j,re),W(S,re,null),a(k,sa),a(k,Q),a(Q,ra),a(Q,le),a(le,la),c(e,Be,n),W(C,e,n),c(e,Ge,n),c(e,d,n),a(d,oa),a(d,oe),a(oe,ia),a(d,na),a(d,ie),a(ie,ua),a(d,ca),a(d,ne),a(ne,ma),a(d,pa),a(d,ue),a(ue,da),a(d,fa),a(d,ce),a(ce,ha),a(d,ga),a(d,me),a(me,va),a(d,ba),c(e,Se,n),c(e,T,n),a(T,M),a(M,pe),W(J,pe,null),a(T,Ea),a(T,Y),a(Y,wa),a(Y,de),a(de,_a),c(e,Ce,n),c(e,w,n),a(w,xa),a(w,fe),a(fe,qa),a(w,$a),a(w,he),a(he,ya),a(w,Pa),a(w,Z),a(Z,ka),a(w,Ta),c(e,Je,n),c(e,h,n),a(h,Ha),a(h,ge),a(ge,ja),a(h,Ma),a(h,ve),a(ve,Ia),a(h,Aa),a(h,be),a(be,Ba),a(h,Ga),a(h,z),a(z,Sa),a(h,Ca),c(e,ze,n),W(F,e,n),c(e,Fe,n),c(e,ee,n),a(ee,Ja),c(e,Le,n),c(e,v,n),c(e,Ne,n),c(e,q,n),a(q,za),a(q,L),a(L,Fa),a(q,La),a(q,Ee),a(Ee,Na),a(q,Ra),c(e,Re,n),c(e,H,n),a(H,I),a(I,we),W(N,we,null),a(H,Da),a(H,ae),a(ae,Oa),a(ae,_e),a(_e,Va),c(e,De,n),c(e,f,n),a(f,Wa),a(f,xe),a(xe,Xa),a(f,Ua),a(f,qe),a(qe,Ka),a(f,Qa),a(f,$e),a($e,Ya),a(f,Za),a(f,ye),a(ye,et),a(f,at),a(f,Pe),a(Pe,tt),a(f,st),c(e,Oe,n),c(e,A,n),a(A,rt),a(A,ke),a(ke,lt),a(A,ot),c(e,Ve,n),W(R,e,n),c(e,We,n),c(e,b,n),c(e,Xe,n),c(e,$,n),a($,it),a($,Te),a(Te,nt),a($,ut),a($,He),a(He,ct),a($,mt),c(e,Ue,n),W(D,e,n),c(e,Ke,n),c(e,E,n),c(e,Qe,n),c(e,_,n),a(_,pt),a(_,je),a(je,dt),a(_,ft),a(_,Me),a(Me,ht),a(_,gt),a(_,Ie),a(Ie,vt),a(_,bt),Ye=!0},p:hs,i(e){Ye||(X(S.$$.fragment,e),X(C.$$.fragment,e),X(J.$$.fragment,e),X(F.$$.fragment,e),X(N.$$.fragment,e),X(R.$$.fragment,e),X(D.$$.fragment,e),Ye=!0)},o(e){U(S.$$.fragment,e),U(C.$$.fragment,e),U(J.$$.fragment,e),U(F.$$.fragment,e),U(N.$$.fragment,e),U(R.$$.fragment,e),U(D.$$.fragment,e),Ye=!1},d(e){t(P),e&&t(Ae),e&&t(k),K(S),e&&t(Be),K(C,e),e&&t(Ge),e&&t(d),e&&t(Se),e&&t(T),K(J),e&&t(Ce),e&&t(w),e&&t(Je),e&&t(h),e&&t(ze),K(F,e),e&&t(Fe),e&&t(ee),e&&t(Le),e&&t(v),e&&t(Ne),e&&t(q),e&&t(Re),e&&t(H),K(N),e&&t(De),e&&t(f),e&&t(Oe),e&&t(A),e&&t(Ve),K(R,e),e&&t(We),e&&t(b),e&&t(Xe),e&&t($),e&&t(Ue),K(D,e),e&&t(Ke),e&&t(E),e&&t(Qe),e&&t(_)}}}const Es={local:"intgrations-avec-le-ihub-dhugging-facei",sections:[{local:"chargement-de-modles-depuis-le-ihub-dhugging-facei",title:"Chargement de mod\xE8les depuis le <i>Hub d'Hugging Face</i>"},{local:"chargement-depuis-ihugging-face-spacesi",title:"Chargement depuis <i>Hugging Face Spaces</i>"}],title:"Int\xE9grations avec le <i>Hub d'Hugging Face</i>"};function ws(yt){return gs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ys extends ms{constructor(P){super();ps(this,P,ws,bs,ds,{})}}export{ys as default,Es as metadata};
