Buckets:
| import{s as Xt,n as Et,o as Qt}from"../chunks/scheduler.37c15a92.js";import{S as Lt,i as _t,g as i,s as l,r as m,A as Pt,h as r,f as o,c as s,j as Rt,u as c,x as n,k as b,y as Dt,a,v as d,d as u,t as p,w as M}from"../chunks/index.2bf4358c.js";import{Y as Ot}from"../chunks/Youtube.1e50a667.js";import{C as rt}from"../chunks/CodeBlock.4e987730.js";import{C as At}from"../chunks/CourseFloatingBanner.6add7356.js";import{H as me,E as Kt}from"../chunks/getInferenceSnippets.24b50994.js";function eo(nt){let h,ue,ce,pe,j,Me,U,he,G,be,B,mt='Os <a href="https://discuss.huggingface.co" rel="nofollow">fóruns do Hugging Face</a> são um ótimo lugar para obter ajuda da equipe de código aberto e da comunidade Hugging Face. Aqui está a aparência da página principal em um determinado dia:',ye,y,ct='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter8/forums.png" alt="The Hugging Face forums." width="100%"/>',fe,I,dt='No lado esquerdo você pode ver todas as categorias em que os vários tópicos estão agrupados, enquanto o lado direito mostra os tópicos mais recentes. Um tópico é uma postagem que contém um título, categoria e descrição; é bastante semelhante ao formato de problemas do GitHub que vimos ao criar nosso próprio conjunto de dados no <a href="/course/chapter5">Capítulo 5</a>. Como o nome sugere, a categoria <a href="https://discuss.huggingface.co/c/beginners/5" rel="nofollow">Beginners</a> destina-se principalmente a pessoas que estão começando com as bibliotecas e o ecossistema Hugging Face. Qualquer dúvida sobre qualquer uma das bibliotecas é bem-vinda, seja para depurar algum código ou pedir ajuda sobre como fazer algo. (Dito isso, se sua pergunta diz respeito a uma biblioteca em particular, você provavelmente deve ir para a categoria de biblioteca correspondente no fórum.)',we,Z,ut='Da mesma forma, as categorias <a href="https://discuss.huggingface.co/c/intermediate/6" rel="nofollow">Intermediário</a> e <a href="https://discuss.huggingface.co/c/research/7" rel="nofollow">Pesquisa</a> são para perguntas mais avançadas, por exemplo, sobre as bibliotecas ou alguma nova pesquisa interessante sobre PNL que você gostaria de discutir.',Te,W,pt='E, naturalmente, também devemos mencionar a categoria <a href="https://discuss.huggingface.co/c/course/20" rel="nofollow">Curso</a>, onde você pode tirar todas as suas dúvidas relacionadas ao curso Hugging Face!',ve,C,Mt='Depois de selecionar uma categoria, você estará pronto para escrever seu primeiro tópico. Você pode encontrar algumas <a href="https://discuss.huggingface.co/t/how-to-request-support/3128" rel="nofollow">diretrizes</a> no fórum sobre como fazer isso, e nesta seção veremos algumas características que compõem um bom tópico.',ge,V,Je,x,ht="Como exemplo de execução, vamos supor que estamos tentando gerar embeddings de artigos da Wikipedia para criar um mecanismo de pesquisa personalizado. Como de costume, carregamos o tokenizer e o model da seguinte forma:",je,H,Ue,k,bt='Agora suponha que tentamos incorporar uma seção inteira do <a href="https://en.wikipedia.org/wiki/Transformers" rel="nofollow">artigo da Wikipédia</a> em Transformers (a franquia, não a biblioteca!):',Ge,Y,Be,z,Ie,F,yt='Uh-oh, encontramos um problema — e a mensagem de erro é muito mais enigmática do que as que vimos na <a href="/curso/chapter8/section2">seção 2</a>! Não podemos fazer cara ou coroa do traceback completo, então decidimos recorrer aos fóruns do Hugging Face para obter ajuda. Como podemos elaborar o tema?',Ze,$,ft="Para começar, precisamos clicar no botão “Novo Tópico” (em inglês, <strong>new topic</strong>) no canto superior direito (observe que para criar um tópico, precisamos estar logados):",We,f,wt='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter8/forums-new-topic.png" alt="Creating a new forum topic." width="100%"/>',Ce,S,Tt="Isso traz uma interface de escrita onde podemos inserir o título do nosso tópico, selecionar uma categoria e redigir o conteúdo:",Ve,w,vt='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter8/forum-topic01.png" alt="The interface for creating a forum topic." width="100%"/>',xe,q,gt="Como o erro parece ser exclusivamente sobre 🤗 Transformers, selecionaremos isso para a categoria. Nossa primeira tentativa de explicar o problema pode ser algo assim:",He,T,Jt='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter8/forum-topic02.png" alt="Drafting the content for a new forum topic." width="100%"/>',ke,N,jt="Embora este tópico contenha a mensagem de erro para a qual precisamos de ajuda, há alguns problemas com a forma como ela está escrita:",Ye,R,Ut="<li>O título não é muito descritivo, então quem estiver navegando no fórum não poderá dizer do que se trata o tópico sem ler também o corpo.</li> <li>O corpo não fornece informações suficientes sobre <em>onde</em> o erro está vindo e <em>como</em> reproduzi-lo.</li> <li>O tópico marca algumas pessoas diretamente com um tom um tanto exigente.</li>",ze,X,Gt="Tópicos como este provavelmente não terão uma resposta rápida (se conseguirem), então vamos ver como podemos melhorá-lo. Vamos começar com a primeira questão de escolher um bom título.",Fe,E,$e,Q,Bt="Se você estiver tentando obter ajuda com um bug em seu código, uma boa regra geral é incluir informações suficientes no título para que outras pessoas possam determinar rapidamente se acham que podem responder à sua pergunta ou não. Em nosso exemplo em execução, sabemos o nome da exceção que está sendo levantada e temos algumas dicas de que ela é acionada na passagem direta do modelo, onde chamamos <code>model(**inputs)</code>. Para comunicar isso, um título possível poderia ser:",Se,L,It="<p>Source of IndexError in the AutoModel forward pass?</p>",qe,_,Zt="Este título diz ao leitor <em>onde</em> você acha que o bug está vindo, e se eles encontraram um <code>IndexError</code> antes, há uma boa chance de que eles saibam como depurá-lo. Claro, o título pode ser o que você quiser, e outras variações como:",Ne,P,Wt="<p>Why does my model produce an IndexError?</p>",Re,D,Ct="também pode ficar bem. Agora que temos um título descritivo, vamos dar uma olhada em como melhorar o corpo.",Xe,O,Ee,A,Vt="Ler o código-fonte é bastante difícil em um IDE, mas é ainda mais difícil quando o código é copiado e colado como texto simples! Felizmente, os fóruns do Hugging Face suportam o uso de Markdown, então você deve sempre colocar seus blocos de código com três acentos graves (```) para que seja mais fácil de ler. Vamos fazer isso para embelezar a mensagem de erro - e enquanto estaomos nisso, vamos tornar o corpo um pouco mais educado do que a nossa versão original:",Qe,v,xt='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter8/forum-topic03.png" alt="Our revised forum topic, with proper code formatting." width="100%"/>',Le,K,Ht="Como você pode ver na captura de tela, colocar os blocos de código em acentos graves converte o texto bruto em código formatado, completo com estilo de cores! Observe também que backticks simples podem ser usados para formatar variáveis inline, como fizemos para <code>distilbert-base-uncased</code>. Este tópico parece muito melhor e, com um pouco de sorte, podemos encontrar alguém na comunidade que possa adivinhar do que se trata o erro. No entanto, em vez de confiar na sorte, vamos facilitar a vida incluindo o rastreamento em todos os seus detalhes sangrentos!",_e,ee,Pe,te,kt="Como a última linha do traceback geralmente é suficiente para depurar seu próprio código, pode ser tentador apenas fornecer isso em seu tópico para “economizar espaço”. Embora bem intencionado, isso na verdade torna <em>mais difícil</em> para outros depurar o problema, já que as informações que estão mais acima no traceback também podem ser muito úteis. Portanto, uma boa prática é copiar e colar o traceback <em>inteiro</em>, certificando-se de que está bem formatado. Como esses rastreamentos podem ser bastante longos, algumas pessoas preferem mostrá-los depois de explicar o código-fonte. Vamos fazer isso. Agora, nosso tópico do fórum se parece com o seguinte:",De,g,Yt='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter8/forum-topic04.png" alt="Our example forum topic, with the complete traceback." width="100%"/>',Oe,oe,zt="Isso é muito mais informativo, e um leitor cuidadoso pode apontar que o problema parece ser devido à passagem de uma entrada longa por causa desta linha no traceback:",Ae,ae,Ft="<p>Token indices sequence length is longer than the specified maximum sequence length for this model (583 > 512).</p>",Ke,le,$t="No entanto, podemos tornar as coisas ainda mais fáceis para eles fornecendo o código real que acionou o erro. Vamos fazer isso agora.",et,se,tt,ie,St="Se você já tentou depurar o código de outra pessoa, provavelmente tentou primeiro recriar o problema relatado para poder começar a trabalhar no rastreamento para identificar o erro. Não é diferente quando se trata de obter (ou dar) assistência nos fóruns, então realmente ajuda se você puder fornecer um pequeno exemplo que reproduza o erro. Na metade do tempo, simplesmente fazer este exercício o ajudará a descobrir o que está acontecendo de errado. De qualquer forma, a parte que falta em nosso exemplo é mostrar as <em>inputs</em> que fornecemos ao modelo. Fazer isso nos dá algo como o seguinte exemplo concluído:",ot,J,qt='<img src="https://huggingface.co/datasets/huggingface-course/documentation-images/resolve/main/en/chapter8/forum-topic05.png" alt="The final version of our forum topic." width="100%"/>',at,re,Nt="Este tópico agora contém muitas informações e foi escrito de uma forma que é muito mais provável de atrair a atenção da comunidade e obter uma resposta útil. Com essas diretrizes básicas, agora você pode criar ótimos tópicos para encontrar as respostas para suas dúvidas sobre 🤗 Transformers!",lt,ne,st,de,it;return j=new me({props:{title:"Pedindo ajuda nos fóruns",local:"pedindo-ajuda-nos-fóruns",headingTag:"h1"}}),U=new At({props:{chapter:8,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/pt/chapter8/section3.ipynb"},{label:"Aws Studio",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/master/course/pt/chapter8/section3.ipynb"}]}}),G=new Ot({props:{id:"S2EEG3JIt2A"}}),V=new me({props:{title:"Escrevendo uma boa postagem no fórum",local:"escrevendo-uma-boa-postagem-no-fórum",headingTag:"h2"}}),H=new rt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Ub2tlbml6ZXIlMkMlMjBBdXRvTW9kZWwlMEElMEFtb2RlbF9jaGVja3BvaW50JTIwJTNEJTIwJTIyZGlzdGlsYmVydC1iYXNlLXVuY2FzZWQlMjIlMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZChtb2RlbF9jaGVja3BvaW50KSUwQW1vZGVsJTIwJTNEJTIwQXV0b01vZGVsLmZyb21fcHJldHJhaW5lZChtb2RlbF9jaGVja3BvaW50KQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer, AutoModel | |
| model_checkpoint = <span class="hljs-string">"distilbert-base-uncased"</span> | |
| tokenizer = AutoTokenizer.from_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NvbnMlMjAod2hvJTIwY29tYmluZSUyMHRvJTIwZm9ybSUwQURldmFzdGF0b3IpJTJDJTVCMTklNUQlNUIyMCU1RCUyMGFuZCUyME9tZWdhJTIwU3VwcmVtZS4lMjBUaGUlMjBNYXJ2ZWwlMjBjb21pYyUyMGVzdGFibGlzaGVzJTIwZWFybHklMjBvbiUwQXRoYXQlMjBQcmltZSUyMHdpZWxkcyUyMHRoZSUyMENyZWF0aW9uJTIwTWF0cml4JTJDJTIwd2hpY2glMjBnaXZlcyUyMGxpZmUlMjB0byUyMG1hY2hpbmVzLiUyMEluJTIwdGhlJTBBc2Vjb25kJTIwc2Vhc29uJTJDJTIwdGhlJTIwdHdvLXBhcnQlMjBlcGlzb2RlJTIwVGhlJTIwS2V5JTIwdG8lMjBWZWN0b3IlMjBTaWdtYSUyMGludHJvZHVjZWQlMjB0aGUlMEFhbmNpZW50JTIwVmVjdG9yJTIwU2lnbWElMjBjb21wdXRlciUyQyUyMHdoaWNoJTIwc2VydmVkJTIwdGhlJTIwc2FtZSUyMG9yaWdpbmFsJTIwcHVycG9zZSUyMGFzJTIwdGhlJTBBQ3JlYXRpb24lMjBNYXRyaXglMjAoZ2l2aW5nJTIwbGlmZSUyMHRvJTIwVHJhbnNmb3JtZXJzKSUyQyUyMGFuZCUyMGl0cyUyMGd1YXJkaWFuJTIwQWxwaGElMjBUcmlvbi4lMEElMjIlMjIlMjIlMEElMEFpbnB1dHMlMjAlM0QlMjB0b2tlbml6ZXIodGV4dCUyQyUyMHJldHVybl90ZW5zb3JzJTNEJTIycHQlMjIpJTBBbG9naXRzJTIwJTNEJTIwbW9kZWwoKippbnB1dHMpLmxvZ2l0cw==",highlighted:`text = <span class="hljs-string">""" | |
| Generation One is a retroactive term for the Transformers characters that | |
| appeared between 1984 and 1993. The Transformers began with the 1980s Japanese | |
| toy lines Micro Change and Diaclone. They presented robots able to transform | |
| into everyday vehicles, electronic items or weapons. Hasbro bought the Micro | |
| Change and Diaclone toys, and partnered with Takara. Marvel Comics was hired by | |
| Hasbro to create the backstory; editor-in-chief Jim Shooter wrote an overall | |
| story, and gave the task of creating the characthers to writer Dennis O'Neil. | |
| Unhappy with O'Neil's work (although O'Neil created the name "Optimus Prime"), | |
| Shooter chose Bob Budiansky to create the characters. | |
| The Transformers mecha were largely designed by Shōji Kawamori, the creator of | |
| the Japanese mecha anime franchise Macross (which was adapted into the Robotech | |
| franchise in North America). Kawamori came up with the idea of transforming | |
| mechs while working on the Diaclone and Macross franchises in the early 1980s | |
| (such as the VF-1 Valkyrie in Macross and Robotech), with his Diaclone mechs | |
| later providing the basis for Transformers. | |
| The primary concept of Generation One is that the heroic Optimus Prime, the | |
| villainous Megatron, and their finest soldiers crash land on pre-historic Earth | |
| in the Ark and the Nemesis before awakening in 1985, Cybertron hurtling through | |
| the Neutral zone as an effect of the war. The Marvel comic was originally part | |
| of the main Marvel Universe, with appearances from Spider-Man and Nick Fury, | |
| plus some cameos, as well as a visit to the Savage Land. | |
| The Transformers TV series began around the same time. Produced by Sunbow | |
| Productions and Marvel Productions, later Hasbro Productions, from the start it | |
| contradicted Budiansky's backstories. The TV series shows the Autobots looking | |
| for new energy sources, and crash landing as the Decepticons attack. Marvel | |
| interpreted the Autobots as destroying a rogue asteroid approaching Cybertron. | |
| Shockwave is loyal to Megatron in the TV series, keeping Cybertron in a | |
| stalemate during his absence, but in the comic book he attempts to take command | |
| of the Decepticons. The TV series would also differ wildly from the origins | |
| Budiansky had created for the Dinobots, the Decepticon turned Autobot Jetfire | |
| (known as Skyfire on TV), the Constructicons (who combine to form | |
| Devastator),[19][20] and Omega Supreme. The Marvel comic establishes early on | |
| that Prime wields the Creation Matrix, which gives life to machines. In the | |
| second season, the two-part episode The Key to Vector Sigma introduced the | |
| ancient Vector Sigma computer, which served the same original purpose as the | |
| Creation Matrix (giving life to Transformers), and its guardian Alpha Trion. | |
| """</span> | |
| inputs = tokenizer(text, return_tensors=<span class="hljs-string">"pt"</span>) | |
| logits = model(**inputs).logits`,wrap:!1}}),z=new rt({props:{code:"SW5kZXhFcnJvciUzQSUyMGluZGV4JTIwb3V0JTIwb2YlMjByYW5nZSUyMGluJTIwc2VsZg==",highlighted:'IndexError: index out of <span class="hljs-built_in">range</span> <span class="hljs-keyword">in</span> self',wrap:!1}}),E=new me({props:{title:"Escolhendo um título descritivo",local:"escolhendo-um-título-descritivo",headingTag:"h3"}}),O=new me({props:{title:"Formatando seus trechos de código",local:"formatando-seus-trechos-de-código",headingTag:"h3"}}),ee=new me({props:{title:"Incluindo o rastreamento completo",local:"incluindo-o-rastreamento-completo",headingTag:"h3"}}),se=new me({props:{title:"Fornecendo um exemplo reproduzível",local:"fornecendo-um-exemplo-reproduzível",headingTag:"h3"}}),ne=new Kt({props:{source:"https://github.com/huggingface/course/blob/main/chapters/pt/chapter8/3.mdx"}}),{c(){h=i("meta"),ue=l(),ce=i("p"),pe=l(),m(j.$$.fragment),Me=l(),m(U.$$.fragment),he=l(),m(G.$$.fragment),be=l(),B=i("p"),B.innerHTML=mt,ye=l(),y=i("div"),y.innerHTML=ct,fe=l(),I=i("p"),I.innerHTML=dt,we=l(),Z=i("p"),Z.innerHTML=ut,Te=l(),W=i("p"),W.innerHTML=pt,ve=l(),C=i("p"),C.innerHTML=Mt,ge=l(),m(V.$$.fragment),Je=l(),x=i("p"),x.textContent=ht,je=l(),m(H.$$.fragment),Ue=l(),k=i("p"),k.innerHTML=bt,Ge=l(),m(Y.$$.fragment),Be=l(),m(z.$$.fragment),Ie=l(),F=i("p"),F.innerHTML=yt,Ze=l(),$=i("p"),$.innerHTML=ft,We=l(),f=i("div"),f.innerHTML=wt,Ce=l(),S=i("p"),S.textContent=Tt,Ve=l(),w=i("div"),w.innerHTML=vt,xe=l(),q=i("p"),q.textContent=gt,He=l(),T=i("div"),T.innerHTML=Jt,ke=l(),N=i("p"),N.textContent=jt,Ye=l(),R=i("ol"),R.innerHTML=Ut,ze=l(),X=i("p"),X.textContent=Gt,Fe=l(),m(E.$$.fragment),$e=l(),Q=i("p"),Q.innerHTML=Bt,Se=l(),L=i("blockquote"),L.innerHTML=It,qe=l(),_=i("p"),_.innerHTML=Zt,Ne=l(),P=i("blockquote"),P.innerHTML=Wt,Re=l(),D=i("p"),D.textContent=Ct,Xe=l(),m(O.$$.fragment),Ee=l(),A=i("p"),A.textContent=Vt,Qe=l(),v=i("div"),v.innerHTML=xt,Le=l(),K=i("p"),K.innerHTML=Ht,_e=l(),m(ee.$$.fragment),Pe=l(),te=i("p"),te.innerHTML=kt,De=l(),g=i("div"),g.innerHTML=Yt,Oe=l(),oe=i("p"),oe.textContent=zt,Ae=l(),ae=i("blockquote"),ae.innerHTML=Ft,Ke=l(),le=i("p"),le.textContent=$t,et=l(),m(se.$$.fragment),tt=l(),ie=i("p"),ie.innerHTML=St,ot=l(),J=i("div"),J.innerHTML=qt,at=l(),re=i("p"),re.textContent=Nt,lt=l(),m(ne.$$.fragment),st=l(),de=i("p"),this.h()},l(e){const t=Pt("svelte-u9bgzb",document.head);h=r(t,"META",{name:!0,content:!0}),t.forEach(o),ue=s(e),ce=r(e,"P",{}),Rt(ce).forEach(o),pe=s(e),c(j.$$.fragment,e),Me=s(e),c(U.$$.fragment,e),he=s(e),c(G.$$.fragment,e),be=s(e),B=r(e,"P",{"data-svelte-h":!0}),n(B)!=="svelte-1ol19v9"&&(B.innerHTML=mt),ye=s(e),y=r(e,"DIV",{class:!0,"data-svelte-h":!0}),n(y)!=="svelte-14n1ttz"&&(y.innerHTML=ct),fe=s(e),I=r(e,"P",{"data-svelte-h":!0}),n(I)!=="svelte-jcns4a"&&(I.innerHTML=dt),we=s(e),Z=r(e,"P",{"data-svelte-h":!0}),n(Z)!=="svelte-1oq83ga"&&(Z.innerHTML=ut),Te=s(e),W=r(e,"P",{"data-svelte-h":!0}),n(W)!=="svelte-1x9qdv4"&&(W.innerHTML=pt),ve=s(e),C=r(e,"P",{"data-svelte-h":!0}),n(C)!=="svelte-1psw8ry"&&(C.innerHTML=Mt),ge=s(e),c(V.$$.fragment,e),Je=s(e),x=r(e,"P",{"data-svelte-h":!0}),n(x)!=="svelte-1bmuf68"&&(x.textContent=ht),je=s(e),c(H.$$.fragment,e),Ue=s(e),k=r(e,"P",{"data-svelte-h":!0}),n(k)!=="svelte-1qsz6rp"&&(k.innerHTML=bt),Ge=s(e),c(Y.$$.fragment,e),Be=s(e),c(z.$$.fragment,e),Ie=s(e),F=r(e,"P",{"data-svelte-h":!0}),n(F)!=="svelte-1lyarbj"&&(F.innerHTML=yt),Ze=s(e),$=r(e,"P",{"data-svelte-h":!0}),n($)!=="svelte-1p5nkpn"&&($.innerHTML=ft),We=s(e),f=r(e,"DIV",{class:!0,"data-svelte-h":!0}),n(f)!=="svelte-1guiktj"&&(f.innerHTML=wt),Ce=s(e),S=r(e,"P",{"data-svelte-h":!0}),n(S)!=="svelte-7tc72"&&(S.textContent=Tt),Ve=s(e),w=r(e,"DIV",{class:!0,"data-svelte-h":!0}),n(w)!=="svelte-xij8sp"&&(w.innerHTML=vt),xe=s(e),q=r(e,"P",{"data-svelte-h":!0}),n(q)!=="svelte-vf5fwe"&&(q.textContent=gt),He=s(e),T=r(e,"DIV",{class:!0,"data-svelte-h":!0}),n(T)!=="svelte-3f05is"&&(T.innerHTML=Jt),ke=s(e),N=r(e,"P",{"data-svelte-h":!0}),n(N)!=="svelte-q78c7d"&&(N.textContent=jt),Ye=s(e),R=r(e,"OL",{"data-svelte-h":!0}),n(R)!=="svelte-x4wjg5"&&(R.innerHTML=Ut),ze=s(e),X=r(e,"P",{"data-svelte-h":!0}),n(X)!=="svelte-1hmgnvf"&&(X.textContent=Gt),Fe=s(e),c(E.$$.fragment,e),$e=s(e),Q=r(e,"P",{"data-svelte-h":!0}),n(Q)!=="svelte-20ed90"&&(Q.innerHTML=Bt),Se=s(e),L=r(e,"BLOCKQUOTE",{"data-svelte-h":!0}),n(L)!=="svelte-qp1hky"&&(L.innerHTML=It),qe=s(e),_=r(e,"P",{"data-svelte-h":!0}),n(_)!=="svelte-1rgz74s"&&(_.innerHTML=Zt),Ne=s(e),P=r(e,"BLOCKQUOTE",{"data-svelte-h":!0}),n(P)!=="svelte-15dhjoh"&&(P.innerHTML=Wt),Re=s(e),D=r(e,"P",{"data-svelte-h":!0}),n(D)!=="svelte-xp3ukc"&&(D.textContent=Ct),Xe=s(e),c(O.$$.fragment,e),Ee=s(e),A=r(e,"P",{"data-svelte-h":!0}),n(A)!=="svelte-184tgqj"&&(A.textContent=Vt),Qe=s(e),v=r(e,"DIV",{class:!0,"data-svelte-h":!0}),n(v)!=="svelte-pol4zs"&&(v.innerHTML=xt),Le=s(e),K=r(e,"P",{"data-svelte-h":!0}),n(K)!=="svelte-1l0elsb"&&(K.innerHTML=Ht),_e=s(e),c(ee.$$.fragment,e),Pe=s(e),te=r(e,"P",{"data-svelte-h":!0}),n(te)!=="svelte-1hqbket"&&(te.innerHTML=kt),De=s(e),g=r(e,"DIV",{class:!0,"data-svelte-h":!0}),n(g)!=="svelte-1oxns09"&&(g.innerHTML=Yt),Oe=s(e),oe=r(e,"P",{"data-svelte-h":!0}),n(oe)!=="svelte-d614x3"&&(oe.textContent=zt),Ae=s(e),ae=r(e,"BLOCKQUOTE",{"data-svelte-h":!0}),n(ae)!=="svelte-1cf7hkp"&&(ae.innerHTML=Ft),Ke=s(e),le=r(e,"P",{"data-svelte-h":!0}),n(le)!=="svelte-5c5vnj"&&(le.textContent=$t),et=s(e),c(se.$$.fragment,e),tt=s(e),ie=r(e,"P",{"data-svelte-h":!0}),n(ie)!=="svelte-1hefz2j"&&(ie.innerHTML=St),ot=s(e),J=r(e,"DIV",{class:!0,"data-svelte-h":!0}),n(J)!=="svelte-1ckd2c8"&&(J.innerHTML=qt),at=s(e),re=r(e,"P",{"data-svelte-h":!0}),n(re)!=="svelte-1hj3992"&&(re.textContent=Nt),lt=s(e),c(ne.$$.fragment,e),st=s(e),de=r(e,"P",{}),Rt(de).forEach(o),this.h()},h(){b(h,"name","hf:doc:metadata"),b(h,"content",to),b(y,"class","flex justify-center"),b(f,"class","flex justify-center"),b(w,"class","flex justify-center"),b(T,"class","flex justify-center"),b(v,"class","flex justify-center"),b(g,"class","flex justify-center"),b(J,"class","flex justify-center")},m(e,t){Dt(document.head,h),a(e,ue,t),a(e,ce,t),a(e,pe,t),d(j,e,t),a(e,Me,t),d(U,e,t),a(e,he,t),d(G,e,t),a(e,be,t),a(e,B,t),a(e,ye,t),a(e,y,t),a(e,fe,t),a(e,I,t),a(e,we,t),a(e,Z,t),a(e,Te,t),a(e,W,t),a(e,ve,t),a(e,C,t),a(e,ge,t),d(V,e,t),a(e,Je,t),a(e,x,t),a(e,je,t),d(H,e,t),a(e,Ue,t),a(e,k,t),a(e,Ge,t),d(Y,e,t),a(e,Be,t),d(z,e,t),a(e,Ie,t),a(e,F,t),a(e,Ze,t),a(e,$,t),a(e,We,t),a(e,f,t),a(e,Ce,t),a(e,S,t),a(e,Ve,t),a(e,w,t),a(e,xe,t),a(e,q,t),a(e,He,t),a(e,T,t),a(e,ke,t),a(e,N,t),a(e,Ye,t),a(e,R,t),a(e,ze,t),a(e,X,t),a(e,Fe,t),d(E,e,t),a(e,$e,t),a(e,Q,t),a(e,Se,t),a(e,L,t),a(e,qe,t),a(e,_,t),a(e,Ne,t),a(e,P,t),a(e,Re,t),a(e,D,t),a(e,Xe,t),d(O,e,t),a(e,Ee,t),a(e,A,t),a(e,Qe,t),a(e,v,t),a(e,Le,t),a(e,K,t),a(e,_e,t),d(ee,e,t),a(e,Pe,t),a(e,te,t),a(e,De,t),a(e,g,t),a(e,Oe,t),a(e,oe,t),a(e,Ae,t),a(e,ae,t),a(e,Ke,t),a(e,le,t),a(e,et,t),d(se,e,t),a(e,tt,t),a(e,ie,t),a(e,ot,t),a(e,J,t),a(e,at,t),a(e,re,t),a(e,lt,t),d(ne,e,t),a(e,st,t),a(e,de,t),it=!0},p:Et,i(e){it||(u(j.$$.fragment,e),u(U.$$.fragment,e),u(G.$$.fragment,e),u(V.$$.fragment,e),u(H.$$.fragment,e),u(Y.$$.fragment,e),u(z.$$.fragment,e),u(E.$$.fragment,e),u(O.$$.fragment,e),u(ee.$$.fragment,e),u(se.$$.fragment,e),u(ne.$$.fragment,e),it=!0)},o(e){p(j.$$.fragment,e),p(U.$$.fragment,e),p(G.$$.fragment,e),p(V.$$.fragment,e),p(H.$$.fragment,e),p(Y.$$.fragment,e),p(z.$$.fragment,e),p(E.$$.fragment,e),p(O.$$.fragment,e),p(ee.$$.fragment,e),p(se.$$.fragment,e),p(ne.$$.fragment,e),it=!1},d(e){e&&(o(ue),o(ce),o(pe),o(Me),o(he),o(be),o(B),o(ye),o(y),o(fe),o(I),o(we),o(Z),o(Te),o(W),o(ve),o(C),o(ge),o(Je),o(x),o(je),o(Ue),o(k),o(Ge),o(Be),o(Ie),o(F),o(Ze),o($),o(We),o(f),o(Ce),o(S),o(Ve),o(w),o(xe),o(q),o(He),o(T),o(ke),o(N),o(Ye),o(R),o(ze),o(X),o(Fe),o($e),o(Q),o(Se),o(L),o(qe),o(_),o(Ne),o(P),o(Re),o(D),o(Xe),o(Ee),o(A),o(Qe),o(v),o(Le),o(K),o(_e),o(Pe),o(te),o(De),o(g),o(Oe),o(oe),o(Ae),o(ae),o(Ke),o(le),o(et),o(tt),o(ie),o(ot),o(J),o(at),o(re),o(lt),o(st),o(de)),o(h),M(j,e),M(U,e),M(G,e),M(V,e),M(H,e),M(Y,e),M(z,e),M(E,e),M(O,e),M(ee,e),M(se,e),M(ne,e)}}}const to='{"title":"Pedindo ajuda nos fóruns","local":"pedindo-ajuda-nos-fóruns","sections":[{"title":"Escrevendo uma boa postagem no fórum","local":"escrevendo-uma-boa-postagem-no-fórum","sections":[{"title":"Escolhendo um título descritivo","local":"escolhendo-um-título-descritivo","sections":[],"depth":3},{"title":"Formatando seus trechos de código","local":"formatando-seus-trechos-de-código","sections":[],"depth":3},{"title":"Incluindo o rastreamento completo","local":"incluindo-o-rastreamento-completo","sections":[],"depth":3},{"title":"Fornecendo um exemplo reproduzível","local":"fornecendo-um-exemplo-reproduzível","sections":[],"depth":3}],"depth":2}],"depth":1}';function oo(nt){return Qt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mo extends Lt{constructor(h){super(),_t(this,h,oo,eo,Xt,{})}}export{mo as component}; | |
Xet Storage Details
- Size:
- 28.6 kB
- Xet hash:
- 1ec87c42d39876911ec1f2d8cfcc6053942691f3cfbbc0af455388ff53cdbea3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.