import{S as Er,i as kr,s as yr,e as o,k as f,w as h,t as g,M as br,c as s,d as t,m as p,x as c,a as i,h as d,b as n,G as r,g as l,y as u,q as $,o as m,B as v,v as Ar}from"../../chunks/vendor-hf-doc-builder.js";import{I as x}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as Pr}from"../../chunks/CourseFloatingBanner-hf-doc-builder.js";import{Q as _}from"../../chunks/Question-hf-doc-builder.js";import{F as Gr}from"../../chunks/FrameworkSwitchCourse-hf-doc-builder.js";import"../../chunks/DocNotebookDropdown-hf-doc-builder.js";function Sr(gt){let E,ce,w,ue,Q,dt,Le,z,De,$e,wt,Me,k,I,ve,U,xt,ge,_t,Re,W,Je,y,B,de,j,Et,we,kt,Oe,K,Qe,b,C,xe,V,yt,_e,bt,ze,X,Ue,A,T,Ee,Y,At,ke,Pt,We,Z,je,P,L,ye,ee,Gt,be,St,Ke,te,Ve,G,D,Ae,re,Ht,Pe,Nt,Xe,ae,Ye,S,M,Ge,oe,qt,Se,Ft,Ze,se,et,H,R,He,ie,It,Ne,Bt,tt,ne,rt,N,J,qe,le,Ct,Fe,Tt,at,fe,ot,q,O,Ie,pe,Lt,F,Dt,Be,Mt,Rt,Ce,Jt,Ot,st,he,it;return w=new Gr({props:{fw:gt[0]}}),z=new Pr({props:{chapter:7,classNames:"absolute z-10 right-0 top-0"}}),U=new x({}),W=new _({props:{choices:[{text:"\u4E3A\u60A8\u7684\u673A\u5668\u5B66\u4E60\u6A21\u578B\u521B\u5EFA\u4E00\u4E2A\u6F14\u793A",explain:"\u901A\u8FC7\u51E0\u884C Python \u4EE3\u7801\uFF0C\u60A8\u53EF\u4EE5\u4F7F\u7528\u6211\u4EEC\u7684\u9884\u6784\u5EFA\u7EC4\u4EF6\u5E93\u4E3A ML \u6A21\u578B\u751F\u6210\u4E00\u4E2A\u6F14\u793A\u3002",correct:!0},{text:"\u4E0E\u4ED6\u4EBA\u5206\u4EAB\u4F60\u7684\u673A\u5668\u5B66\u4E60\u6A21\u578B",explain:"\u5728\u542F\u52A8\u65B9\u6CD5\u4E2D\u4F7F\u7528 <code> share = True </code> \u53C2\u6570\uFF0C\u53EF\u4EE5\u751F\u6210\u4E00\u4E2A\u5171\u4EAB\u94FE\u63A5\u53D1\u9001\u7ED9\u4EFB\u4F55\u4EBA\u3002",correct:!0},{text:"\u8C03\u8BD5\u6A21\u578B",explain:"Grado\u6F14\u793A\u7684\u4E00\u4E2A\u4F18\u70B9\u662F\u80FD\u591F\u7528\u771F\u5B9E\u6570\u636E\u6D4B\u8BD5\u6A21\u578B\uFF0C\u60A8\u53EF\u4EE5\u5B9E\u65F6\u66F4\u6539\u5E76\u89C2\u5BDF\u6A21\u578B\u7684\u9884\u6D4B\u53D8\u5316\uFF0C\u4ECE\u800C\u5E2E\u52A9\u60A8\u8C03\u8BD5\u6A21\u578B\u3002",correct:!0},{text:"\u8BAD\u7EC3\u4F60\u7684\u6A21\u578B",explain:"\u5728\u4F60\u7684\u6A21\u578B\u88AB\u8BAD\u7EC3\u4E4B\u540E\uFF0CGrado \u88AB\u8BBE\u8BA1\u7528\u6765\u8FDB\u884C\u6A21\u578B\u63A8\u7406\u3002"}]}}),j=new x({}),K=new _({props:{choices:[{text:"\u6CA1\u9519",explain:"Grdio \u53EF\u4EE5\u5904\u7406 PyTorch \u6A21\u578B\uFF0C\u4F46\u9664\u6B64\u4E4B\u5916\u4E5F\u53EF\u4EE5\u5904\u7406\u4EFB\u4F55\u7C7B\u578B\u7684\u673A\u5668\u5B66\u4E60\u6A21\u578B\uFF01"},{text:"\u4E0D\u6B63\u786E",explain:"Grdio \u662F\u4E0D\u4F9D\u8D56\u6A21\u578B\u7684\uFF0C\u8FD9\u610F\u5473\u7740\u60A8\u53EF\u4EE5\u4E3A\u4EFB\u4F55\u7C7B\u578B\u7684\u673A\u5668\u5B66\u4E60\u6A21\u578B\u521B\u5EFA\u6F14\u793A\u3002",correct:!0}]}}),V=new x({}),X=new _({props:{choices:[{text:"\u6807\u51C6\u7684 python IDEs",explain:"\u5BF9\u4E8E\u60A8\u6700\u559C\u6B22\u7684 IDE\uFF0CGrdio \u5DE5\u4F5C\u5F97\u975E\u5E38\u597D\u3002",correct:!0},{text:"Google Colab \u7B14\u8BB0\u672C",explain:"\u4F60\u53EF\u4EE5\u5728\u4F60\u7684 Google colab \u7B14\u8BB0\u672C\u4E0A\u521B\u5EFA\u5E76\u542F\u52A8\u4E00\u4E2A\u6F14\u793A\u3002",correct:!0},{text:"Jupyter\u7B14\u8BB0\u672C",explain:"\u5F88\u597D\u7684\u9009\u62E9 \u2014\u2014 \u60A8\u53EF\u4EE5\u5728\u60A8\u7684Jupyter notebook\u521B\u5EFA\u5E76\u542F\u52A8\u4E00\u4E2A\u6F14\u793A\u3002",correct:!0}]}}),Y=new x({}),Z=new _({props:{choices:[{text:"\u6CA1\u9519",explain:"GRadio \u53EF\u4EE5\u5904\u7406\u51E0\u4E4E\u6240\u6709\u7684\u6570\u636E\u7C7B\u578B\uFF0C\u800C\u4E0D\u4EC5\u4EC5\u662F NLP\u3002"},{text:"\u5047\u7684",explain:"Grado \u4E3A\u5F00\u53D1\u4EBA\u5458\u63D0\u4F9B\u4E86\u4E00\u4E2A\u5E93\uFF0C\u5176\u4E2D\u5305\u542B\u51E0\u4E4E\u6240\u6709\u6570\u636E\u7C7B\u578B\u7684\u9884\u6784\u5EFA\u7EC4\u4EF6\u3002",correct:!0}]}}),ee=new x({}),te=new _({props:{choices:[{text:"\u591A\u8F93\u5165\u591A\u8F93\u51FA",explain:"\u591A\u8F93\u5165\u591A\u8F93\u51FA\u662F\u53EF\u80FD\u7684\u3002\u60A8\u6240\u9700\u8981\u505A\u7684\u5C31\u662F\u5C06\u8F93\u5165\u548C\u8F93\u51FA\u7684\u5217\u8868\u4F20\u9012\u7ED9\u5B83\u4EEC\u76F8\u5E94\u7684\u53C2\u6570",correct:!0},{text:"\u6570\u636E\u6301\u4E45\u6027\u72B6\u6001",explain:"\u53EF\u4EE5\u5728\u754C\u9762\u4E2D\u6DFB\u52A0\u72B6\u6001\u3002",correct:!0},{text:"\u7528\u6237\u540D\u548C\u5BC6\u7801\u8EAB\u4EFD\u9A8C\u8BC1",explain:"\u5C06\u7528\u6237\u540D/\u5BC6\u7801\u5143\u7EC4\u7684\u5217\u8868\u4F20\u9012\u7ED9\u542F\u52A8\u65B9\u6CD5\uFF0C\u4EE5\u6DFB\u52A0\u8EAB\u4EFD\u9A8C\u8BC1\u3002",correct:!0},{text:"\u81EA\u52A8\u5206\u6790\u8C01\u5728\u4F7F\u7528\u60A8\u7684Grado\u6F14\u793A",explain:"\u518D\u8BD5\u4E00\u6B21 \u2014\u2014 Grado \u4E0D\u63D0\u4F9B\u7ED9\u5F00\u53D1\u4EBA\u5458\u5173\u4E8E\u8C01\u4F7F\u7528\u4ED6\u4EEC\u7684\u6F14\u793A\u7684\u5206\u6790\u3002"},{text:"\u4ECE\u201CHuggingFace\u201D\u7684\u6A21\u578B\u4E2D\u5FC3\u6216\u201CHuggingFace\u201D Space\u52A0\u8F7D\u6A21\u578B",explain:"\u7EDD\u5BF9\u53EF\u4EE5 \u2014\u2014 \u4F7F\u7528 <code> gr. Interface.load () </code> \u65B9\u6CD5\u52A0\u8F7D\u4EFB\u4F55 Hugging Face \u6A21\u578B",correct:!0}]}}),re=new x({}),ae=new _({props:{choices:[{text:"gr.Interface.load('huggingface/{user}/{model_name}')",explain:"\u8FD9\u662F\u4ECE Hub \u52A0\u8F7D Hugging Face \u6A21\u578B\u7684\u6709\u6548\u65B9\u6CD5",correct:!0},{text:"gr.Interface.load('model/{user}/{model_name}')",explain:"\u8FD9\u662F\u4ECE Hub \u52A0\u8F7D Hugging Face \u6A21\u578B\u7684\u6709\u6548\u65B9\u6CD5",correct:!0},{text:"gr.Interface.load('demos/{user}/{model_name}')",explain:"\u518D\u8BD5\u4E00\u6B21\u2014\u2014\u4F60\u4E0D\u80FD\u4F7F\u7528'demos'\u524D\u7F00\u6765\u52A0\u8F7D\u6A21\u578B\u3002"},{text:"gr.Interface.load('spaces/{user}/{model_name}')",explain:"\u8FD9\u662F\u4ECE Space \u52A0\u8F7D Hugging Face \u6A21\u578B\u7684\u6709\u6548\u65B9\u6CD5",correct:!0}]}}),oe=new x({}),se=new _({props:{choices:[{text:"\u5411\u9884\u6D4B\u51FD\u6570\u4E2D\u4F20\u5165\u4E00\u4E2A\u989D\u5916\u7684\u53C2\u6570\uFF0C\u8BE5\u53C2\u6570\u8868\u793A\u63A5\u53E3\u7684\u72B6\u6001\u3002",explain:"\u9700\u8981\u4E00\u4E2A\u989D\u5916\u7684\u53C2\u6570\u6765\u5B58\u50A8\u63A5\u53E3\u7684\u5386\u53F2\u8BB0\u5F55\u6216\u72B6\u6001\u3002",correct:!0},{text:"\u5728\u9884\u6D4B\u51FD\u6570\u7684\u672B\u5C3E\uFF0C\u5C06\u72B6\u6001\u7684\u66F4\u65B0\u503C\u4F5C\u4E3A\u989D\u5916\u7684\u8FD4\u56DE\u503C\u8FD4\u56DE\u3002",explain:"\u6B64\u5386\u53F2\u8BB0\u5F55\u6216\u72B6\u6001\u503C\u9700\u8981\u7531\u51FD\u6570\u8FD4\u56DE\u3002",correct:!0},{text:"\u5728\u521B\u5EFA\u63A5\u53E3\u65F6\u6DFB\u52A0\u72B6\u6001\u8F93\u5165\u548C\u72B6\u6001\u8F93\u51FA\u7EC4\u4EF6",explain:"Grado \u63D0\u4F9B\u4E86\u4E00\u4E2A\u72B6\u6001\u8F93\u5165\u548C\u8F93\u51FA\u7EC4\u4EF6\u6765\u6301\u4E45\u5B58\u50A8\u6570\u636E\u3002",correct:!0}]}}),ie=new x({}),ne=new _({props:{choices:[{text:"\u6587\u672C\u6846\u3002",explain:"\u662F\u7684\uFF0C\u53EF\u4EE5\u4F7F\u7528 Textbox \u7EC4\u4EF6\u521B\u5EFA\u6587\u672C\u6846\u3002",correct:!0},{text:"\u56FE\u8868\u3002",explain:"\u76EE\u524D\u6CA1\u6709\u56FE\u5F62\u7EC4\u4EF6\u3002"},{text:"\u56FE\u50CF\u3002",explain:"\u662F\u7684\uFF0C\u60A8\u53EF\u4EE5\u4F7F\u7528 Image \u7EC4\u4EF6\u521B\u5EFA\u4E00\u4E2A\u56FE\u50CF\u4E0A\u4F20\u5C0F\u90E8\u4EF6\u3002",correct:!0},{text:"\u97F3\u9891\u3002",explain:"\u662F\u7684\uFF0C\u60A8\u53EF\u4EE5\u4F7F\u7528 Audio \u7EC4\u4EF6\u521B\u5EFA\u4E00\u4E2A\u97F3\u9891\u4E0A\u4F20\u5C0F\u90E8\u4EF6\u3002",correct:!0}]}}),le=new x({}),fe=new _({props:{choices:[{text:"\u5C06\u591A\u4E2A\u6F14\u793A\u5408\u5E76\u5230\u4E00\u4E2A Web \u5E94\u7528\u7A0B\u5E8F\u4E2D",explain:"\u60A8\u53EF\u4EE5\u4F7F\u7528`with gradio.Tabs ():`\u6765\u4E3A\u591A\u4E2A\u6F14\u793A\u6DFB\u52A0\u9009\u9879\u5361",correct:!0},{text:"\u5C06\u5355\u51FB/\u66F4\u6539/\u7B49\u4E8B\u4EF6\u89E6\u53D1\u5668\u5206\u914D\u7ED9`Blocks`\u7EC4\u4EF6",explain:"\u5728\u5206\u914D\u4E8B\u4EF6\u65F6\uFF0C\u4F20\u5165\u4E09\u4E2A\u53C2\u6570: fn: \u5E94\u8BE5\u8C03\u7528\u7684\u51FD\u6570\u3001\u8F93\u5165: \u7EC4\u4EF6\u7684\u8F93\u5165(list)\u548C\u8F93\u51FA: \u5E94\u8BE5\u8C03\u7528\u7EC4\u4EF6\u7684\u8F93\u51FA(list)\u3002",correct:!0},{text:"\u81EA\u52A8\u786E\u5B9A\u54EA\u4E9B`Blocks`\u7EC4\u4EF6\u5E94\u8BE5\u662F\u4EA4\u4E92\u7684\u8FD8\u662F\u9759\u6001\u7684",explain:"\u6839\u636E\u60A8\u5B9A\u4E49\u7684\u4E8B\u4EF6\u89E6\u53D1\u5668\uFF0C`Blocks`\u81EA\u52A8\u8BA1\u7B97\u51FA\u7EC4\u4EF6\u662F\u5426\u5E94\u8BE5\u63A5\u53D7\u7528\u6237\u8F93\u5165\u3002",correct:!0},{text:"\u521B\u5EFA\u591A\u6B65\u6F14\u793A; \u8FD9\u610F\u5473\u7740\u5141\u8BB8\u60A8\u91CD\u7528\u4E00\u4E2A\u7EC4\u4EF6\u7684\u8F93\u51FA\u4F5C\u4E3A\u4E0B\u4E00\u4E2A\u7EC4\u4EF6\u7684\u8F93\u5165",explain:"\u60A8\u53EF\u4EE5\u4F7F\u7528\u7EC4\u4EF6\u4F5C\u4E3A\u4E00\u4E2A\u4E8B\u4EF6\u89E6\u53D1\u5668\u7684\u8F93\u5165\uFF0C\u4F46\u4F5C\u4E3A\u53E6\u4E00\u4E2A\u4E8B\u4EF6\u89E6\u53D1\u5668\u7684\u8F93\u51FA\u3002",correct:!0}]}}),pe=new x({}),he=new _({props:{choices:[{text:"\u6CA1\u9519",explain:"\u5C31\u50CF`Interface`\u4E00\u6837\uFF0C\u6240\u6709\u7684\u5171\u4EAB\u548C\u6258\u7BA1\u529F\u80FD\u5BF9\u4E8E`Blocks`\u6F14\u793A\u90FD\u662F\u4E00\u6837\u7684\uFF01",correct:!0},{text:"\u4E0D\u6B63\u786E",explain:"\u5C31\u50CF`Interface`\u4E00\u6837\uFF0C\u6240\u6709\u7684\u5171\u4EAB\u548C\u6258\u7BA1\u529F\u80FD\u5BF9\u4E8E`Blocks`\u6F14\u793A\u90FD\u662F\u4E00\u6837\u7684\uFF01",correct:!1}]}}),{c(){E=o("meta"),ce=f(),h(w.$$.fragment),ue=f(),Q=o("h1"),dt=g("\u7AE0\u672B\u6D4B\u9A8C"),Le=f(),h(z.$$.fragment),De=f(),$e=o("p"),wt=g("\u8BA9\u6211\u4EEC\u6D4B\u8BD5\u4E00\u4E0B\u60A8\u5728\u672C\u7AE0\u4E2D\u5B66\u5230\u4E86\u4EC0\u4E48\uFF01"),Me=f(),k=o("h3"),I=o("a"),ve=o("span"),h(U.$$.fragment),xt=f(),ge=o("span"),_t=g("1.\u4F60\u80FD\u5229\u7528Grado\u505A\u4EC0\u4E48\uFF1F"),Re=f(),h(W.$$.fragment),Je=f(),y=o("h3"),B=o("a"),de=o("span"),h(j.$$.fragment),Et=f(),we=o("span"),kt=g("2.Grado\u53EA\u5728 PyTorch \u6A21\u578B\u4E0A\u5DE5\u4F5C"),Oe=f(),h(K.$$.fragment),Qe=f(),b=o("h3"),C=o("a"),xe=o("span"),h(V.$$.fragment),yt=f(),_e=o("span"),bt=g("3.\u4F60\u53EF\u4EE5\u5728\u54EA\u91CC\u53D1\u5E03\u4E00\u4E2A GRadio \u6F14\u793A\uFF1F"),ze=f(),h(X.$$.fragment),Ue=f(),A=o("h3"),T=o("a"),Ee=o("span"),h(Y.$$.fragment),At=f(),ke=o("span"),Pt=g("4.Gdio \u4E3B\u8981\u662F\u4E3A NLP \u6A21\u578B\u8BBE\u8BA1\u7684"),We=f(),h(Z.$$.fragment),je=f(),P=o("h3"),L=o("a"),ye=o("span"),h(ee.$$.fragment),Gt=f(),be=o("span"),St=g("5.\u4E0B\u5217\u54EA\u4E9B\u7279\u6027\u662F\u7531 Grado \u652F\u6301\u7684\uFF1F"),Ke=f(),h(te.$$.fragment),Ve=f(),G=o("h3"),D=o("a"),Ae=o("span"),h(re.$$.fragment),Ht=f(),Pe=o("span"),Nt=g("6.\u4E0B\u5217\u54EA\u4E00\u79CD\u662F\u4ECE Hub \u6216 Spaces \u52A0\u8F7D Huggging Face \u6A21\u578B\u7684\u6709\u6548\u65B9\u6CD5\uFF1F"),Xe=f(),h(ae.$$.fragment),Ye=f(),S=o("h3"),M=o("a"),Ge=o("span"),h(oe.$$.fragment),qt=f(),Se=o("span"),Ft=g("7.\u521B\u5EFA\u60A8\u7684 Gradio \u63A5\u53E3\u65F6\uFF0C\u60A8\u5FC5\u987B\u6DFB\u52A0\u4EE5\u4E0B\u6B65\u9AA4\uFF1A"),Ze=f(),h(se.$$.fragment),et=f(),H=o("h3"),R=o("a"),He=o("span"),h(ie.$$.fragment),It=f(),Ne=o("span"),Bt=g("8.Gradio \u5E93\u5305\u62EC\u4EE5\u4E0B\u54EA\u4E9B\u7EC4\u4EF6\uFF1F"),tt=f(),h(ne.$$.fragment),rt=f(),N=o("h3"),J=o("a"),qe=o("span"),h(le.$$.fragment),Ct=f(),Fe=o("span"),Tt=g("9.Gradio\u5141\u8BB8\u4F60\u505A\u4EC0\u4E48\uFF1F"),at=f(),h(fe.$$.fragment),ot=f(),q=o("h3"),O=o("a"),Ie=o("span"),h(pe.$$.fragment),Lt=f(),F=o("span"),Dt=g("10.\u4F60\u53EF\u4EE5\u5171\u4EAB\u4E00\u4E2A"),Be=o("code"),Mt=g("Blocks"),Rt=g("\u6F14\u793A\u7684\u516C\u5171\u94FE\u63A5\uFF0C\u5E76\u521B\u5EFA\u4E00\u4E2A"),Ce=o("code"),Jt=g("Blocks"),Ot=g("\u7684\u6F14\u793A\u5728HuggingFace\u7A7A\u95F4\u3002"),st=f(),h(he.$$.fragment),this.h()},l(e){const a=br('[data-svelte="svelte-1phssyn"]',document.head);E=s(a,"META",{name:!0,content:!0}),a.forEach(t),ce=p(e),c(w.$$.fragment,e),ue=p(e),Q=s(e,"H1",{id:!0});var Te=i(Q);dt=d(Te,"\u7AE0\u672B\u6D4B\u9A8C"),Te.forEach(t),Le=p(e),c(z.$$.fragment,e),De=p(e),$e=s(e,"P",{});var Qt=i($e);wt=d(Qt,"\u8BA9\u6211\u4EEC\u6D4B\u8BD5\u4E00\u4E0B\u60A8\u5728\u672C\u7AE0\u4E2D\u5B66\u5230\u4E86\u4EC0\u4E48\uFF01"),Qt.forEach(t),Me=p(e),k=s(e,"H3",{class:!0});var nt=i(k);I=s(nt,"A",{id:!0,class:!0,href:!0});var zt=i(I);ve=s(zt,"SPAN",{});var Ut=i(ve);c(U.$$.fragment,Ut),Ut.forEach(t),zt.forEach(t),xt=p(nt),ge=s(nt,"SPAN",{});var Wt=i(ge);_t=d(Wt,"1.\u4F60\u80FD\u5229\u7528Grado\u505A\u4EC0\u4E48\uFF1F"),Wt.forEach(t),nt.forEach(t),Re=p(e),c(W.$$.fragment,e),Je=p(e),y=s(e,"H3",{class:!0});var lt=i(y);B=s(lt,"A",{id:!0,class:!0,href:!0});var jt=i(B);de=s(jt,"SPAN",{});var Kt=i(de);c(j.$$.fragment,Kt),Kt.forEach(t),jt.forEach(t),Et=p(lt),we=s(lt,"SPAN",{});var Vt=i(we);kt=d(Vt,"2.Grado\u53EA\u5728 PyTorch \u6A21\u578B\u4E0A\u5DE5\u4F5C"),Vt.forEach(t),lt.forEach(t),Oe=p(e),c(K.$$.fragment,e),Qe=p(e),b=s(e,"H3",{class:!0});var ft=i(b);C=s(ft,"A",{id:!0,class:!0,href:!0});var Xt=i(C);xe=s(Xt,"SPAN",{});var Yt=i(xe);c(V.$$.fragment,Yt),Yt.forEach(t),Xt.forEach(t),yt=p(ft),_e=s(ft,"SPAN",{});var Zt=i(_e);bt=d(Zt,"3.\u4F60\u53EF\u4EE5\u5728\u54EA\u91CC\u53D1\u5E03\u4E00\u4E2A GRadio \u6F14\u793A\uFF1F"),Zt.forEach(t),ft.forEach(t),ze=p(e),c(X.$$.fragment,e),Ue=p(e),A=s(e,"H3",{class:!0});var pt=i(A);T=s(pt,"A",{id:!0,class:!0,href:!0});var er=i(T);Ee=s(er,"SPAN",{});var tr=i(Ee);c(Y.$$.fragment,tr),tr.forEach(t),er.forEach(t),At=p(pt),ke=s(pt,"SPAN",{});var rr=i(ke);Pt=d(rr,"4.Gdio \u4E3B\u8981\u662F\u4E3A NLP \u6A21\u578B\u8BBE\u8BA1\u7684"),rr.forEach(t),pt.forEach(t),We=p(e),c(Z.$$.fragment,e),je=p(e),P=s(e,"H3",{class:!0});var ht=i(P);L=s(ht,"A",{id:!0,class:!0,href:!0});var ar=i(L);ye=s(ar,"SPAN",{});var or=i(ye);c(ee.$$.fragment,or),or.forEach(t),ar.forEach(t),Gt=p(ht),be=s(ht,"SPAN",{});var sr=i(be);St=d(sr,"5.\u4E0B\u5217\u54EA\u4E9B\u7279\u6027\u662F\u7531 Grado \u652F\u6301\u7684\uFF1F"),sr.forEach(t),ht.forEach(t),Ke=p(e),c(te.$$.fragment,e),Ve=p(e),G=s(e,"H3",{class:!0});var ct=i(G);D=s(ct,"A",{id:!0,class:!0,href:!0});var ir=i(D);Ae=s(ir,"SPAN",{});var nr=i(Ae);c(re.$$.fragment,nr),nr.forEach(t),ir.forEach(t),Ht=p(ct),Pe=s(ct,"SPAN",{});var lr=i(Pe);Nt=d(lr,"6.\u4E0B\u5217\u54EA\u4E00\u79CD\u662F\u4ECE Hub \u6216 Spaces \u52A0\u8F7D Huggging Face \u6A21\u578B\u7684\u6709\u6548\u65B9\u6CD5\uFF1F"),lr.forEach(t),ct.forEach(t),Xe=p(e),c(ae.$$.fragment,e),Ye=p(e),S=s(e,"H3",{class:!0});var ut=i(S);M=s(ut,"A",{id:!0,class:!0,href:!0});var fr=i(M);Ge=s(fr,"SPAN",{});var pr=i(Ge);c(oe.$$.fragment,pr),pr.forEach(t),fr.forEach(t),qt=p(ut),Se=s(ut,"SPAN",{});var hr=i(Se);Ft=d(hr,"7.\u521B\u5EFA\u60A8\u7684 Gradio \u63A5\u53E3\u65F6\uFF0C\u60A8\u5FC5\u987B\u6DFB\u52A0\u4EE5\u4E0B\u6B65\u9AA4\uFF1A"),hr.forEach(t),ut.forEach(t),Ze=p(e),c(se.$$.fragment,e),et=p(e),H=s(e,"H3",{class:!0});var $t=i(H);R=s($t,"A",{id:!0,class:!0,href:!0});var cr=i(R);He=s(cr,"SPAN",{});var ur=i(He);c(ie.$$.fragment,ur),ur.forEach(t),cr.forEach(t),It=p($t),Ne=s($t,"SPAN",{});var $r=i(Ne);Bt=d($r,"8.Gradio \u5E93\u5305\u62EC\u4EE5\u4E0B\u54EA\u4E9B\u7EC4\u4EF6\uFF1F"),$r.forEach(t),$t.forEach(t),tt=p(e),c(ne.$$.fragment,e),rt=p(e),N=s(e,"H3",{class:!0});var mt=i(N);J=s(mt,"A",{id:!0,class:!0,href:!0});var mr=i(J);qe=s(mr,"SPAN",{});var vr=i(qe);c(le.$$.fragment,vr),vr.forEach(t),mr.forEach(t),Ct=p(mt),Fe=s(mt,"SPAN",{});var gr=i(Fe);Tt=d(gr,"9.Gradio\u5141\u8BB8\u4F60\u505A\u4EC0\u4E48\uFF1F"),gr.forEach(t),mt.forEach(t),at=p(e),c(fe.$$.fragment,e),ot=p(e),q=s(e,"H3",{class:!0});var vt=i(q);O=s(vt,"A",{id:!0,class:!0,href:!0});var dr=i(O);Ie=s(dr,"SPAN",{});var wr=i(Ie);c(pe.$$.fragment,wr),wr.forEach(t),dr.forEach(t),Lt=p(vt),F=s(vt,"SPAN",{});var me=i(F);Dt=d(me,"10.\u4F60\u53EF\u4EE5\u5171\u4EAB\u4E00\u4E2A"),Be=s(me,"CODE",{});var xr=i(Be);Mt=d(xr,"Blocks"),xr.forEach(t),Rt=d(me,"\u6F14\u793A\u7684\u516C\u5171\u94FE\u63A5\uFF0C\u5E76\u521B\u5EFA\u4E00\u4E2A"),Ce=s(me,"CODE",{});var _r=i(Ce);Jt=d(_r,"Blocks"),_r.forEach(t),Ot=d(me,"\u7684\u6F14\u793A\u5728HuggingFace\u7A7A\u95F4\u3002"),me.forEach(t),vt.forEach(t),st=p(e),c(he.$$.fragment,e),this.h()},h(){n(E,"name","hf:doc:metadata"),n(E,"content",JSON.stringify(Hr)),n(Q,"id",""),n(I,"id","1.\u4F60\u80FD\u5229\u7528grado\u505A\u4EC0\u4E48\uFF1F"),n(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"),n(I,"href","#1.\u4F60\u80FD\u5229\u7528grado\u505A\u4EC0\u4E48\uFF1F"),n(k,"class","relative group"),n(B,"id","2.grado\u53EA\u5728-pytorch-\u6A21\u578B\u4E0A\u5DE5\u4F5C"),n(B,"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"),n(B,"href","#2.grado\u53EA\u5728-pytorch-\u6A21\u578B\u4E0A\u5DE5\u4F5C"),n(y,"class","relative group"),n(C,"id","3.\u4F60\u53EF\u4EE5\u5728\u54EA\u91CC\u53D1\u5E03\u4E00\u4E2A-gradio-\u6F14\u793A\uFF1F"),n(C,"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"),n(C,"href","#3.\u4F60\u53EF\u4EE5\u5728\u54EA\u91CC\u53D1\u5E03\u4E00\u4E2A-gradio-\u6F14\u793A\uFF1F"),n(b,"class","relative group"),n(T,"id","4.gdio-\u4E3B\u8981\u662F\u4E3A-nlp-\u6A21\u578B\u8BBE\u8BA1\u7684"),n(T,"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"),n(T,"href","#4.gdio-\u4E3B\u8981\u662F\u4E3A-nlp-\u6A21\u578B\u8BBE\u8BA1\u7684"),n(A,"class","relative group"),n(L,"id","5.\u4E0B\u5217\u54EA\u4E9B\u7279\u6027\u662F\u7531-grado-\u652F\u6301\u7684\uFF1F"),n(L,"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"),n(L,"href","#5.\u4E0B\u5217\u54EA\u4E9B\u7279\u6027\u662F\u7531-grado-\u652F\u6301\u7684\uFF1F"),n(P,"class","relative group"),n(D,"id","6.\u4E0B\u5217\u54EA\u4E00\u79CD\u662F\u4ECE-hub-\u6216-spaces-\u52A0\u8F7D-huggging-face-\u6A21\u578B\u7684\u6709\u6548\u65B9\u6CD5\uFF1F"),n(D,"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"),n(D,"href","#6.\u4E0B\u5217\u54EA\u4E00\u79CD\u662F\u4ECE-hub-\u6216-spaces-\u52A0\u8F7D-huggging-face-\u6A21\u578B\u7684\u6709\u6548\u65B9\u6CD5\uFF1F"),n(G,"class","relative group"),n(M,"id","7.\u521B\u5EFA\u60A8\u7684-gradio-\u63A5\u53E3\u65F6\uFF0C\u60A8\u5FC5\u987B\u6DFB\u52A0\u4EE5\u4E0B\u6B65\u9AA4\uFF1A"),n(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"),n(M,"href","#7.\u521B\u5EFA\u60A8\u7684-gradio-\u63A5\u53E3\u65F6\uFF0C\u60A8\u5FC5\u987B\u6DFB\u52A0\u4EE5\u4E0B\u6B65\u9AA4\uFF1A"),n(S,"class","relative group"),n(R,"id","8.gradio-\u5E93\u5305\u62EC\u4EE5\u4E0B\u54EA\u4E9B\u7EC4\u4EF6\uFF1F"),n(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"),n(R,"href","#8.gradio-\u5E93\u5305\u62EC\u4EE5\u4E0B\u54EA\u4E9B\u7EC4\u4EF6\uFF1F"),n(H,"class","relative group"),n(J,"id","9.gradio\u5141\u8BB8\u4F60\u505A\u4EC0\u4E48\uFF1F"),n(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"),n(J,"href","#9.gradio\u5141\u8BB8\u4F60\u505A\u4EC0\u4E48\uFF1F"),n(N,"class","relative group"),n(O,"id","10.\u4F60\u53EF\u4EE5\u5171\u4EAB\u4E00\u4E2A<code>blocks</code>\u6F14\u793A\u7684\u516C\u5171\u94FE\u63A5\uFF0C\u5E76\u521B\u5EFA\u4E00\u4E2A<code>blocks</code>\u7684\u6F14\u793A\u5728huggingface\u7A7A\u95F4\u3002"),n(O,"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"),n(O,"href","#10.\u4F60\u53EF\u4EE5\u5171\u4EAB\u4E00\u4E2A<code>blocks</code>\u6F14\u793A\u7684\u516C\u5171\u94FE\u63A5\uFF0C\u5E76\u521B\u5EFA\u4E00\u4E2A<code>blocks</code>\u7684\u6F14\u793A\u5728huggingface\u7A7A\u95F4\u3002"),n(q,"class","relative group")},m(e,a){r(document.head,E),l(e,ce,a),u(w,e,a),l(e,ue,a),l(e,Q,a),r(Q,dt),l(e,Le,a),u(z,e,a),l(e,De,a),l(e,$e,a),r($e,wt),l(e,Me,a),l(e,k,a),r(k,I),r(I,ve),u(U,ve,null),r(k,xt),r(k,ge),r(ge,_t),l(e,Re,a),u(W,e,a),l(e,Je,a),l(e,y,a),r(y,B),r(B,de),u(j,de,null),r(y,Et),r(y,we),r(we,kt),l(e,Oe,a),u(K,e,a),l(e,Qe,a),l(e,b,a),r(b,C),r(C,xe),u(V,xe,null),r(b,yt),r(b,_e),r(_e,bt),l(e,ze,a),u(X,e,a),l(e,Ue,a),l(e,A,a),r(A,T),r(T,Ee),u(Y,Ee,null),r(A,At),r(A,ke),r(ke,Pt),l(e,We,a),u(Z,e,a),l(e,je,a),l(e,P,a),r(P,L),r(L,ye),u(ee,ye,null),r(P,Gt),r(P,be),r(be,St),l(e,Ke,a),u(te,e,a),l(e,Ve,a),l(e,G,a),r(G,D),r(D,Ae),u(re,Ae,null),r(G,Ht),r(G,Pe),r(Pe,Nt),l(e,Xe,a),u(ae,e,a),l(e,Ye,a),l(e,S,a),r(S,M),r(M,Ge),u(oe,Ge,null),r(S,qt),r(S,Se),r(Se,Ft),l(e,Ze,a),u(se,e,a),l(e,et,a),l(e,H,a),r(H,R),r(R,He),u(ie,He,null),r(H,It),r(H,Ne),r(Ne,Bt),l(e,tt,a),u(ne,e,a),l(e,rt,a),l(e,N,a),r(N,J),r(J,qe),u(le,qe,null),r(N,Ct),r(N,Fe),r(Fe,Tt),l(e,at,a),u(fe,e,a),l(e,ot,a),l(e,q,a),r(q,O),r(O,Ie),u(pe,Ie,null),r(q,Lt),r(q,F),r(F,Dt),r(F,Be),r(Be,Mt),r(F,Rt),r(F,Ce),r(Ce,Jt),r(F,Ot),l(e,st,a),u(he,e,a),it=!0},p(e,[a]){const Te={};a&1&&(Te.fw=e[0]),w.$set(Te)},i(e){it||($(w.$$.fragment,e),$(z.$$.fragment,e),$(U.$$.fragment,e),$(W.$$.fragment,e),$(j.$$.fragment,e),$(K.$$.fragment,e),$(V.$$.fragment,e),$(X.$$.fragment,e),$(Y.$$.fragment,e),$(Z.$$.fragment,e),$(ee.$$.fragment,e),$(te.$$.fragment,e),$(re.$$.fragment,e),$(ae.$$.fragment,e),$(oe.$$.fragment,e),$(se.$$.fragment,e),$(ie.$$.fragment,e),$(ne.$$.fragment,e),$(le.$$.fragment,e),$(fe.$$.fragment,e),$(pe.$$.fragment,e),$(he.$$.fragment,e),it=!0)},o(e){m(w.$$.fragment,e),m(z.$$.fragment,e),m(U.$$.fragment,e),m(W.$$.fragment,e),m(j.$$.fragment,e),m(K.$$.fragment,e),m(V.$$.fragment,e),m(X.$$.fragment,e),m(Y.$$.fragment,e),m(Z.$$.fragment,e),m(ee.$$.fragment,e),m(te.$$.fragment,e),m(re.$$.fragment,e),m(ae.$$.fragment,e),m(oe.$$.fragment,e),m(se.$$.fragment,e),m(ie.$$.fragment,e),m(ne.$$.fragment,e),m(le.$$.fragment,e),m(fe.$$.fragment,e),m(pe.$$.fragment,e),m(he.$$.fragment,e),it=!1},d(e){t(E),e&&t(ce),v(w,e),e&&t(ue),e&&t(Q),e&&t(Le),v(z,e),e&&t(De),e&&t($e),e&&t(Me),e&&t(k),v(U),e&&t(Re),v(W,e),e&&t(Je),e&&t(y),v(j),e&&t(Oe),v(K,e),e&&t(Qe),e&&t(b),v(V),e&&t(ze),v(X,e),e&&t(Ue),e&&t(A),v(Y),e&&t(We),v(Z,e),e&&t(je),e&&t(P),v(ee),e&&t(Ke),v(te,e),e&&t(Ve),e&&t(G),v(re),e&&t(Xe),v(ae,e),e&&t(Ye),e&&t(S),v(oe),e&&t(Ze),v(se,e),e&&t(et),e&&t(H),v(ie),e&&t(tt),v(ne,e),e&&t(rt),e&&t(N),v(le),e&&t(at),v(fe,e),e&&t(ot),e&&t(q),v(pe),e&&t(st),v(he,e)}}}const Hr={local:"",title:"\u7AE0\u672B\u6D4B\u9A8C"};function Nr(gt,E,ce){let w="pt";return Ar(()=>{const ue=new URLSearchParams(window.location.search);ce(0,w=ue.get("fw")||"pt")}),[w]}class Lr extends Er{constructor(E){super();kr(this,E,Nr,Sr,yr,{})}}export{Lr as default,Hr as metadata};
