import{s as kn,o as En,n as Q}from"../chunks/scheduler.0cf4ef2e.js";import{S as Rn,i as Nn,e as p,s,c as g,q as Zn,h as Wn,a as d,d as t,b as n,f as U,g as m,j as b,r as Gn,k as x,l as o,m as c,n as h,t as u,o as M,p as f}from"../chunks/index.abc433bf.js";import{C as Yn}from"../chunks/CopyLLMTxtMenu.efc6b005.js";import{D as J}from"../chunks/Docstring.e4170f41.js";import{C as F}from"../chunks/CodeBlock.00dcd05e.js";import{E as B}from"../chunks/ExampleCodeBlock.9d6d4e26.js";import{H as $,E as Sn}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.86d448e2.js";function Bn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi5yZXBvY2FyZCUyMGltcG9ydCUyMFJlcG9DYXJkJTBBdGV4dCUyMCUzRCUyMCcnJyUwQS0tLSUwQWxhbmd1YWdlJTNBJTIwZW4lMEFsaWNlbnNlJTNBJTIwbWl0JTBBLS0tJTBBJTIzJTIwTXklMjByZXBvJTBBJycnJTBBY2FyZCUyMCUzRCUyMFJlcG9DYXJkKHRleHQpJTBBY2FyZC5kYXRhLnRvX2RpY3QoKSUwQWNhcmQudGV4dCUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.repocard <span class="hljs-keyword">import</span> RepoCard
<span class="hljs-meta">&gt;&gt;&gt; </span>text = <span class="hljs-string">&#x27;&#x27;&#x27;
<span class="hljs-meta">... </span>---
<span class="hljs-meta">... </span>language: en
<span class="hljs-meta">... </span>license: mit
<span class="hljs-meta">... </span>---
...
<span class="hljs-meta">... </span># My repo
<span class="hljs-meta">... </span>&#x27;&#x27;&#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>card = RepoCard(text)
<span class="hljs-meta">&gt;&gt;&gt; </span>card.data.to_dict()
{<span class="hljs-string">&#x27;language&#x27;</span>: <span class="hljs-string">&#x27;en&#x27;</span>, <span class="hljs-string">&#x27;license&#x27;</span>: <span class="hljs-string">&#x27;mit&#x27;</span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>card.text
<span class="hljs-string">&#x27;\\n# My repo\\n&#x27;</span>
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function Qn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi5yZXBvY2FyZCUyMGltcG9ydCUyMFJlcG9DYXJkJTBBY2FyZCUyMCUzRCUyMFJlcG9DYXJkLmxvYWQoJTIybmF0ZXJhdyUyRmZvb2QlMjIpJTBBYXNzZXJ0JTIwY2FyZC5kYXRhLnRhZ3MlMjAlM0QlM0QlMjAlNUIlMjJnZW5lcmF0ZWRfZnJvbV90cmFpbmVyJTIyJTJDJTIwJTIyaW1hZ2UtY2xhc3NpZmljYXRpb24lMjIlMkMlMjAlMjJweXRvcmNoJTIyJTVEJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.repocard <span class="hljs-keyword">import</span> RepoCard
<span class="hljs-meta">&gt;&gt;&gt; </span>card = RepoCard.load(<span class="hljs-string">&quot;nateraw/food&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">assert</span> card.data.tags == [<span class="hljs-string">&quot;generated_from_trainer&quot;</span>, <span class="hljs-string">&quot;image-classification&quot;</span>, <span class="hljs-string">&quot;pytorch&quot;</span>]
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function Fn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi5yZXBvY2FyZCUyMGltcG9ydCUyMFJlcG9DYXJkJTBBY2FyZCUyMCUzRCUyMFJlcG9DYXJkKCUyMi0tLSU1Q25sYW5ndWFnZSUzQSUyMGVuJTVDbi0tLSU1Q24lMjMlMjBUaGlzJTIwaXMlMjBhJTIwdGVzdCUyMHJlcG8lMjBjYXJkJTIyKSUwQWNhcmQuc2F2ZSglMjIlMkZ0bXAlMkZ0ZXN0Lm1kJTIyKSUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.repocard <span class="hljs-keyword">import</span> RepoCard
<span class="hljs-meta">&gt;&gt;&gt; </span>card = RepoCard(<span class="hljs-string">&quot;---\\nlanguage: en\\n---\\n# This is a test repo card&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>card.save(<span class="hljs-string">&quot;/tmp/test.md&quot;</span>)
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function Xn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9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luZ2ZhY2VfaHViJTJGdGVtcGxhdGVzJTJGbW9kZWxjYXJkX3RlbXBsYXRlLm1kJyUyQyUwQSUyMCUyMCUyMCUyMGN1c3RvbV90ZW1wbGF0ZV92YXIlM0QnY3VzdG9tJTIwdmFsdWUnJTJDJTIwJTIwJTIzJTIwd2lsbCUyMGJlJTIwcmVwbGFjZWQlMjBpbiUyMHRlbXBsYXRlJTIwaWYlMjBpdCUyMGV4aXN0cyUwQSklMEE=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> ModelCard, ModelCardData, EvalResult

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using the Default Template</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data = ModelCardData(
<span class="hljs-meta">... </span>    language=<span class="hljs-string">&#x27;en&#x27;</span>,
<span class="hljs-meta">... </span>    license=<span class="hljs-string">&#x27;mit&#x27;</span>,
<span class="hljs-meta">... </span>    library_name=<span class="hljs-string">&#x27;timm&#x27;</span>,
<span class="hljs-meta">... </span>    tags=[<span class="hljs-string">&#x27;image-classification&#x27;</span>, <span class="hljs-string">&#x27;resnet&#x27;</span>],
<span class="hljs-meta">... </span>    datasets=[<span class="hljs-string">&#x27;beans&#x27;</span>],
<span class="hljs-meta">... </span>    metrics=[<span class="hljs-string">&#x27;accuracy&#x27;</span>],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>card = ModelCard.from_template(
<span class="hljs-meta">... </span>    card_data,
<span class="hljs-meta">... </span>    model_description=<span class="hljs-string">&#x27;This model does x + y...&#x27;</span>
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Including Evaluation Results</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data = ModelCardData(
<span class="hljs-meta">... </span>    language=<span class="hljs-string">&#x27;en&#x27;</span>,
<span class="hljs-meta">... </span>    tags=[<span class="hljs-string">&#x27;image-classification&#x27;</span>, <span class="hljs-string">&#x27;resnet&#x27;</span>],
<span class="hljs-meta">... </span>    eval_results=[
<span class="hljs-meta">... </span>        EvalResult(
<span class="hljs-meta">... </span>            task_type=<span class="hljs-string">&#x27;image-classification&#x27;</span>,
<span class="hljs-meta">... </span>            dataset_type=<span class="hljs-string">&#x27;beans&#x27;</span>,
<span class="hljs-meta">... </span>            dataset_name=<span class="hljs-string">&#x27;Beans&#x27;</span>,
<span class="hljs-meta">... </span>            metric_type=<span class="hljs-string">&#x27;accuracy&#x27;</span>,
<span class="hljs-meta">... </span>            metric_value=<span class="hljs-number">0.9</span>,
<span class="hljs-meta">... </span>        ),
<span class="hljs-meta">... </span>    ],
<span class="hljs-meta">... </span>    model_name=<span class="hljs-string">&#x27;my-cool-model&#x27;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>card = ModelCard.from_template(card_data)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using a Custom Template</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data = ModelCardData(
<span class="hljs-meta">... </span>    language=<span class="hljs-string">&#x27;en&#x27;</span>,
<span class="hljs-meta">... </span>    tags=[<span class="hljs-string">&#x27;image-classification&#x27;</span>, <span class="hljs-string">&#x27;resnet&#x27;</span>]
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>card = ModelCard.from_template(
<span class="hljs-meta">... </span>    card_data=card_data,
<span class="hljs-meta">... </span>    template_path=<span class="hljs-string">&#x27;./src/huggingface_hub/templates/modelcard_template.md&#x27;</span>,
<span class="hljs-meta">... </span>    custom_template_var=<span class="hljs-string">&#x27;custom value&#x27;</span>,  <span class="hljs-comment"># will be replaced in template if it exists</span>
<span class="hljs-meta">... </span>)
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function Vn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyME1vZGVsQ2FyZERhdGElMEFjYXJkX2RhdGElMjAlM0QlMjBNb2RlbENhcmREYXRhKCUwQSUyMCUyMCUyMCUyMGxhbmd1YWdlJTNEJTIyZW4lMjIlMkMlMEElMjAlMjAlMjAlMjBsaWNlbnNlJTNEJTIybWl0JTIyJTJDJTBBJTIwJTIwJTIwJTIwbGlicmFyeV9uYW1lJTNEJTIydGltbSUyMiUyQyUwQSUyMCUyMCUyMCUyMHRhZ3MlM0QlNUInaW1hZ2UtY2xhc3NpZmljYXRpb24nJTJDJTIwJ3Jlc25ldCclNUQlMkMlMEEpJTBBY2FyZF9kYXRhLnRvX2RpY3QoKSUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> ModelCardData
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data = ModelCardData(
<span class="hljs-meta">... </span>    language=<span class="hljs-string">&quot;en&quot;</span>,
<span class="hljs-meta">... </span>    license=<span class="hljs-string">&quot;mit&quot;</span>,
<span class="hljs-meta">... </span>    library_name=<span class="hljs-string">&quot;timm&quot;</span>,
<span class="hljs-meta">... </span>    tags=[<span class="hljs-string">&#x27;image-classification&#x27;</span>, <span class="hljs-string">&#x27;resnet&#x27;</span>],
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data.to_dict()
{<span class="hljs-string">&#x27;language&#x27;</span>: <span class="hljs-string">&#x27;en&#x27;</span>, <span class="hljs-string">&#x27;license&#x27;</span>: <span class="hljs-string">&#x27;mit&#x27;</span>, <span class="hljs-string">&#x27;library_name&#x27;</span>: <span class="hljs-string">&#x27;timm&#x27;</span>, <span class="hljs-string">&#x27;tags&#x27;</span>: [<span class="hljs-string">&#x27;image-classification&#x27;</span>, <span class="hljs-string">&#x27;resnet&#x27;</span>]}
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function Hn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMERhdGFzZXRDYXJkJTJDJTIwRGF0YXNldENhcmREYXRhJTBBJTBBJTIzJTIwVXNpbmclMjB0aGUlMjBEZWZhdWx0JTIwVGVtcGxhdGUlMEFjYXJkX2RhdGElMjAlM0QlMjBEYXRhc2V0Q2FyZERhdGEoJTBBJTIwJTIwJTIwJTIwbGFuZ3VhZ2UlM0QnZW4nJTJDJTBBJTIwJTIwJTIwJTIwbGljZW5zZSUzRCdtaXQnJTJDJTBBJTIwJTIwJTIwJTIwYW5ub3RhdGlvbnNfY3JlYXRvcnMlM0QnY3Jvd2Rzb3VyY2VkJyUyQyUwQSUyMCUyMCUyMCUyMHRhc2tfY2F0ZWdvcmllcyUzRCU1Qid0ZXh0LWNsYXNzaWZpY2F0aW9uJyU1RCUyQyUwQSUyMCUyMCUyMCUyMHRhc2tfaWRzJTNEJTVCJ3NlbnRpbWVudC1jbGFzc2lmaWNhdGlvbiclMkMlMjAndGV4dC1zY29yaW5nJyU1RCUyQyUwQSUyMCUyMCUyMCUyMG11bHRpbGluZ3VhbGl0eSUzRCdtb25vbGluZ3VhbCclMkMlMEElMjAlMjAlMjAlMjBwcmV0dHlfbmFtZSUzRCdNeSUyMFRleHQlMjBDbGFzc2lmaWNhdGlvbiUyMERhdGFzZXQnJTJDJTBBKSUwQWNhcmQlMjAlM0QlMjBEYXRhc2V0Q2FyZC5mcm9tX3RlbXBsYXRlKCUwQSUyMCUyMCUyMCUyMGNhcmRfZGF0YSUyQyUwQSUyMCUyMCUyMCUyMHByZXR0eV9uYW1lJTNEY2FyZF9kYXRhLnByZXR0eV9uYW1lJTJDJTBBKSUwQSUwQSUyMyUyMFVzaW5nJTIwYSUyMEN1c3RvbSUyMFRlbXBsYXRlJTBBY2FyZF9kYXRhJTIwJTNEJTIwRGF0YXNldENhcmREYXRhKCUwQSUyMCUyMCUyMCUyMGxhbmd1YWdlJTNEJ2VuJyUyQyUwQSUyMCUyMCUyMCUyMGxpY2Vuc2UlM0QnbWl0JyUyQyUwQSklMEFjYXJkJTIwJTNEJTIwRGF0YXNldENhcmQuZnJvbV90ZW1wbGF0ZSglMEElMjAlMjAlMjAlMjBjYXJkX2RhdGElM0RjYXJkX2RhdGElMkMlMEElMjAlMjAlMjAlMjB0ZW1wbGF0ZV9wYXRoJTNEJy4lMkZzcmMlMkZodWdnaW5nZmFjZV9odWIlMkZ0ZW1wbGF0ZXMlMkZkYXRhc2V0Y2FyZF90ZW1wbGF0ZS5tZCclMkMlMEElMjAlMjAlMjAlMjBjdXN0b21fdGVtcGxhdGVfdmFyJTNEJ2N1c3RvbSUyMHZhbHVlJyUyQyUyMCUyMCUyMyUyMHdpbGwlMjBiZSUyMHJlcGxhY2VkJTIwaW4lMjB0ZW1wbGF0ZSUyMGlmJTIwaXQlMjBleGlzdHMlMEEpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> DatasetCard, DatasetCardData

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using the Default Template</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data = DatasetCardData(
<span class="hljs-meta">... </span>    language=<span class="hljs-string">&#x27;en&#x27;</span>,
<span class="hljs-meta">... </span>    license=<span class="hljs-string">&#x27;mit&#x27;</span>,
<span class="hljs-meta">... </span>    annotations_creators=<span class="hljs-string">&#x27;crowdsourced&#x27;</span>,
<span class="hljs-meta">... </span>    task_categories=[<span class="hljs-string">&#x27;text-classification&#x27;</span>],
<span class="hljs-meta">... </span>    task_ids=[<span class="hljs-string">&#x27;sentiment-classification&#x27;</span>, <span class="hljs-string">&#x27;text-scoring&#x27;</span>],
<span class="hljs-meta">... </span>    multilinguality=<span class="hljs-string">&#x27;monolingual&#x27;</span>,
<span class="hljs-meta">... </span>    pretty_name=<span class="hljs-string">&#x27;My Text Classification Dataset&#x27;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>card = DatasetCard.from_template(
<span class="hljs-meta">... </span>    card_data,
<span class="hljs-meta">... </span>    pretty_name=card_data.pretty_name,
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Using a Custom Template</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data = DatasetCardData(
<span class="hljs-meta">... </span>    language=<span class="hljs-string">&#x27;en&#x27;</span>,
<span class="hljs-meta">... </span>    license=<span class="hljs-string">&#x27;mit&#x27;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>card = DatasetCard.from_template(
<span class="hljs-meta">... </span>    card_data=card_data,
<span class="hljs-meta">... </span>    template_path=<span class="hljs-string">&#x27;./src/huggingface_hub/templates/datasetcard_template.md&#x27;</span>,
<span class="hljs-meta">... </span>    custom_template_var=<span class="hljs-string">&#x27;custom value&#x27;</span>,  <span class="hljs-comment"># will be replaced in template if it exists</span>
<span class="hljs-meta">... </span>)
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function qn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMFNwYWNlQ2FyZERhdGElMEFjYXJkX2RhdGElMjAlM0QlMjBTcGFjZUNhcmREYXRhKCUwQSUyMCUyMCUyMCUyMHRpdGxlJTNEJTIyRHJlYW1ib290aCUyMFRyYWluaW5nJTIyJTJDJTBBJTIwJTIwJTIwJTIwbGljZW5zZSUzRCUyMm1pdCUyMiUyQyUwQSUyMCUyMCUyMCUyMHNkayUzRCUyMmdyYWRpbyUyMiUyQyUwQSUyMCUyMCUyMCUyMGR1cGxpY2F0ZWRfZnJvbSUzRCUyMm11bHRpbW9kYWxhcnQlMkZkcmVhbWJvb3RoLXRyYWluaW5nJTIyJTBBKSUwQWNhcmRfZGF0YS50b19kaWN0KCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> SpaceCardData
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data = SpaceCardData(
<span class="hljs-meta">... </span>    title=<span class="hljs-string">&quot;Dreambooth Training&quot;</span>,
<span class="hljs-meta">... </span>    license=<span class="hljs-string">&quot;mit&quot;</span>,
<span class="hljs-meta">... </span>    sdk=<span class="hljs-string">&quot;gradio&quot;</span>,
<span class="hljs-meta">... </span>    duplicated_from=<span class="hljs-string">&quot;multimodalart/dreambooth-training&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>card_data.to_dict()
{<span class="hljs-string">&#x27;title&#x27;</span>: <span class="hljs-string">&#x27;Dreambooth Training&#x27;</span>, <span class="hljs-string">&#x27;sdk&#x27;</span>: <span class="hljs-string">&#x27;gradio&#x27;</span>, <span class="hljs-string">&#x27;license&#x27;</span>: <span class="hljs-string">&#x27;mit&#x27;</span>, <span class="hljs-string">&#x27;duplicated_from&#x27;</span>: <span class="hljs-string">&#x27;multimodalart/dreambooth-training&#x27;</span>}`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function zn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi5yZXBvY2FyZF9kYXRhJTIwaW1wb3J0JTIwbW9kZWxfaW5kZXhfdG9fZXZhbF9yZXN1bHRzJTBBJTIzJTIwRGVmaW5lJTIwYSUyMG1pbmltYWwlMjBtb2RlbCUyMGluZGV4JTBBbW9kZWxfaW5kZXglMjAlM0QlMjAlNUIlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJuYW1lJTIyJTNBJTIwJTIybXktY29vbC1tb2RlbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnJlc3VsdHMlMjIlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJ0YXNrJTIyJTNBJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJT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MDAuOSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUwQSUyMCUyMCUyMCUyMCU3RCUwQSU1RCUwQW1vZGVsX25hbWUlMkMlMjBldmFsX3Jlc3VsdHMlMjAlM0QlMjBtb2RlbF9pbmRleF90b19ldmFsX3Jlc3VsdHMobW9kZWxfaW5kZXgpJTBBbW9kZWxfbmFtZSUwQWV2YWxfcmVzdWx0cyU1QjAlNUQudGFza190eXBlJTBBZXZhbF9yZXN1bHRzJTVCMCU1RC5tZXRyaWNfdHlwZSUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.repocard_data <span class="hljs-keyword">import</span> model_index_to_eval_results
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Define a minimal model index</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model_index = [
<span class="hljs-meta">... </span>    {
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;my-cool-model&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;results&quot;</span>: [
<span class="hljs-meta">... </span>            {
<span class="hljs-meta">... </span>                <span class="hljs-string">&quot;task&quot;</span>: {
<span class="hljs-meta">... </span>                    <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;image-classification&quot;</span>
<span class="hljs-meta">... </span>                },
<span class="hljs-meta">... </span>                <span class="hljs-string">&quot;dataset&quot;</span>: {
<span class="hljs-meta">... </span>                    <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;beans&quot;</span>,
<span class="hljs-meta">... </span>                    <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;Beans&quot;</span>
<span class="hljs-meta">... </span>                },
<span class="hljs-meta">... </span>                <span class="hljs-string">&quot;metrics&quot;</span>: [
<span class="hljs-meta">... </span>                    {
<span class="hljs-meta">... </span>                        <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;accuracy&quot;</span>,
<span class="hljs-meta">... </span>                        <span class="hljs-string">&quot;value&quot;</span>: <span class="hljs-number">0.9</span>
<span class="hljs-meta">... </span>                    }
<span class="hljs-meta">... </span>                ]
<span class="hljs-meta">... </span>            }
<span class="hljs-meta">... </span>        ]
<span class="hljs-meta">... </span>    }
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>model_name, eval_results = model_index_to_eval_results(model_index)
<span class="hljs-meta">&gt;&gt;&gt; </span>model_name
<span class="hljs-string">&#x27;my-cool-model&#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>eval_results[<span class="hljs-number">0</span>].task_type
<span class="hljs-string">&#x27;image-classification&#x27;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>eval_results[<span class="hljs-number">0</span>].metric_type
<span class="hljs-string">&#x27;accuracy&#x27;</span>
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function Ln(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1Yi5yZXBvY2FyZF9kYXRhJTIwaW1wb3J0JTIwZXZhbF9yZXN1bHRzX3RvX21vZGVsX2luZGV4JTJDJTIwRXZhbFJlc3VsdCUwQSUyMyUyMERlZmluZSUyMG1pbmltYWwlMjBldmFsX3Jlc3VsdHMlMEFldmFsX3Jlc3VsdHMlMjAlM0QlMjAlNUIlMEElMjAlMjAlMjAlMjBFdmFsUmVzdWx0KCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHRhc2tfdHlwZSUzRCUyMmltYWdlLWNsYXNzaWZpY2F0aW9uJTIyJTJDJTIwJTIwJTIzJTIwUmVxdWlyZWQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBkYXRhc2V0X3R5cGUlM0QlMjJiZWFucyUyMiUyQyUyMCUyMCUyMyUyMFJlcXVpcmVkJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZGF0YXNldF9uYW1lJTNEJTIyQmVhbnMlMjIlMkMlMjAlMjAlMjMlMjBSZXF1aXJlZCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG1ldHJpY190eXBlJTNEJTIyYWNjdXJhY3klMjIlMkMlMjAlMjAlMjMlMjBSZXF1aXJlZCUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMG1ldHJpY192YWx1ZSUzRDAuOSUyQyUyMCUyMCUyMyUyMFJlcXVpcmVkJTBBJTIwJTIwJTIwJTIwKSUwQSU1RCUwQWV2YWxfcmVzdWx0c190b19tb2RlbF9pbmRleCglMjJteS1jb29sLW1vZGVsJTIyJTJDJTIwZXZhbF9yZXN1bHRzKSUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub.repocard_data <span class="hljs-keyword">import</span> eval_results_to_model_index, EvalResult
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Define minimal eval_results</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>eval_results = [
<span class="hljs-meta">... </span>    EvalResult(
<span class="hljs-meta">... </span>        task_type=<span class="hljs-string">&quot;image-classification&quot;</span>,  <span class="hljs-comment"># Required</span>
<span class="hljs-meta">... </span>        dataset_type=<span class="hljs-string">&quot;beans&quot;</span>,  <span class="hljs-comment"># Required</span>
<span class="hljs-meta">... </span>        dataset_name=<span class="hljs-string">&quot;Beans&quot;</span>,  <span class="hljs-comment"># Required</span>
<span class="hljs-meta">... </span>        metric_type=<span class="hljs-string">&quot;accuracy&quot;</span>,  <span class="hljs-comment"># Required</span>
<span class="hljs-meta">... </span>        metric_value=<span class="hljs-number">0.9</span>,  <span class="hljs-comment"># Required</span>
<span class="hljs-meta">... </span>    )
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>eval_results_to_model_index(<span class="hljs-string">&quot;my-cool-model&quot;</span>, eval_results)
[{<span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;my-cool-model&#x27;</span>, <span class="hljs-string">&#x27;results&#x27;</span>: [{<span class="hljs-string">&#x27;task&#x27;</span>: {<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;image-classification&#x27;</span>}, <span class="hljs-string">&#x27;dataset&#x27;</span>: {<span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;Beans&#x27;</span>, <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;beans&#x27;</span>}, <span class="hljs-string">&#x27;metrics&#x27;</span>: [{<span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;accuracy&#x27;</span>, <span class="hljs-string">&#x27;value&#x27;</span>: <span class="hljs-number">0.9</span>}]}]}]
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=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JTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJ3ZhbHVlJyUzQSUyMDAuMjY2MjEwMjI4MjA0NzI3MiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCduYW1lJyUzQSUyMCdBY2N1cmFjeSclMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAndmVyaWZpZWQnJTNBJTIwRmFsc2UlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlNUQlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlN0QlMEElMjAlMjAlMjAlMjAlNUQlMEElN0QlMEE=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> metadata_eval_result
<span class="hljs-meta">&gt;&gt;&gt; </span>results = metadata_eval_result(
<span class="hljs-meta">... </span>        model_pretty_name=<span class="hljs-string">&quot;RoBERTa fine-tuned on ReactionGIF&quot;</span>,
<span class="hljs-meta">... </span>        task_pretty_name=<span class="hljs-string">&quot;Text Classification&quot;</span>,
<span class="hljs-meta">... </span>        task_id=<span class="hljs-string">&quot;text-classification&quot;</span>,
<span class="hljs-meta">... </span>        metrics_pretty_name=<span class="hljs-string">&quot;Accuracy&quot;</span>,
<span class="hljs-meta">... </span>        metrics_id=<span class="hljs-string">&quot;accuracy&quot;</span>,
<span class="hljs-meta">... </span>        metrics_value=<span class="hljs-number">0.2662102282047272</span>,
<span class="hljs-meta">... </span>        dataset_pretty_name=<span class="hljs-string">&quot;ReactionJPEG&quot;</span>,
<span class="hljs-meta">... </span>        dataset_id=<span class="hljs-string">&quot;julien-c/reactionjpeg&quot;</span>,
<span class="hljs-meta">... </span>        dataset_config=<span class="hljs-string">&quot;default&quot;</span>,
<span class="hljs-meta">... </span>        dataset_split=<span class="hljs-string">&quot;test&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>results == {
<span class="hljs-meta">... </span>    <span class="hljs-string">&#x27;model-index&#x27;</span>: [
<span class="hljs-meta">... </span>        {
<span class="hljs-meta">... </span>            <span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;RoBERTa fine-tuned on ReactionGIF&#x27;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&#x27;results&#x27;</span>: [
<span class="hljs-meta">... </span>                {
<span class="hljs-meta">... </span>                    <span class="hljs-string">&#x27;task&#x27;</span>: {
<span class="hljs-meta">... </span>                        <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;text-classification&#x27;</span>,
<span class="hljs-meta">... </span>                        <span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;Text Classification&#x27;</span>
<span class="hljs-meta">... </span>                    },
<span class="hljs-meta">... </span>                    <span class="hljs-string">&#x27;dataset&#x27;</span>: {
<span class="hljs-meta">... </span>                        <span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;ReactionJPEG&#x27;</span>,
<span class="hljs-meta">... </span>                        <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;julien-c/reactionjpeg&#x27;</span>,
<span class="hljs-meta">... </span>                        <span class="hljs-string">&#x27;config&#x27;</span>: <span class="hljs-string">&#x27;default&#x27;</span>,
<span class="hljs-meta">... </span>                        <span class="hljs-string">&#x27;split&#x27;</span>: <span class="hljs-string">&#x27;test&#x27;</span>
<span class="hljs-meta">... </span>                    },
<span class="hljs-meta">... </span>                    <span class="hljs-string">&#x27;metrics&#x27;</span>: [
<span class="hljs-meta">... </span>                        {
<span class="hljs-meta">... </span>                            <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;accuracy&#x27;</span>,
<span class="hljs-meta">... </span>                            <span class="hljs-string">&#x27;value&#x27;</span>: <span class="hljs-number">0.2662102282047272</span>,
<span class="hljs-meta">... </span>                            <span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;Accuracy&#x27;</span>,
<span class="hljs-meta">... </span>                            <span class="hljs-string">&#x27;verified&#x27;</span>: <span class="hljs-literal">False</span>
<span class="hljs-meta">... </span>                        }
<span class="hljs-meta">... </span>                    ]
<span class="hljs-meta">... </span>                }
<span class="hljs-meta">... </span>            ]
<span class="hljs-meta">... </span>        }
<span class="hljs-meta">... </span>    ]
<span class="hljs-meta">... </span>}
<span class="hljs-literal">True</span>
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function Pn(w){let r,C="Example:",_,i,y;return i=new F({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG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jAlMjAlMjAndmFsdWUnJTNBJTIwMC43NzYyMTAyMjgyMDQ3MjcyJTdEJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJ3Rhc2snJTNBJTIwJTdCJ25hbWUnJTNBJTIwJ1RleHQlMjBDbGFzc2lmaWNhdGlvbiclMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAndHlwZSclM0ElMjAndGV4dC1jbGFzc2lmaWNhdGlvbiclN0QlN0QlNUQlN0QlNUQlN0QlMEF1cmwlMjAlM0QlMjBtZXRhZGF0YV91cGRhdGUoJTIyaGYtaW50ZXJuYWwtdGVzdGluZyUyRnJlYWN0aW9uZ2lmLXJvYmVydGEtY2FyZCUyMiUyQyUyMG1ldGFkYXRhKSUwQQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> metadata_update
<span class="hljs-meta">&gt;&gt;&gt; </span>metadata = {<span class="hljs-string">&#x27;model-index&#x27;</span>: [{<span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;RoBERTa fine-tuned on ReactionGIF&#x27;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&#x27;results&#x27;</span>: [{<span class="hljs-string">&#x27;dataset&#x27;</span>: {<span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;ReactionGIF&#x27;</span>,
<span class="hljs-meta">... </span>                                     <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;julien-c/reactiongif&#x27;</span>},
<span class="hljs-meta">... </span>                          <span class="hljs-string">&#x27;metrics&#x27;</span>: [{<span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;Recall&#x27;</span>,
<span class="hljs-meta">... </span>                                       <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;recall&#x27;</span>,
<span class="hljs-meta">... </span>                                       <span class="hljs-string">&#x27;value&#x27;</span>: <span class="hljs-number">0.7762102282047272</span>}],
<span class="hljs-meta">... </span>                         <span class="hljs-string">&#x27;task&#x27;</span>: {<span class="hljs-string">&#x27;name&#x27;</span>: <span class="hljs-string">&#x27;Text Classification&#x27;</span>,
<span class="hljs-meta">... </span>                                  <span class="hljs-string">&#x27;type&#x27;</span>: <span class="hljs-string">&#x27;text-classification&#x27;</span>}}]}]}
<span class="hljs-meta">&gt;&gt;&gt; </span>url = metadata_update(<span class="hljs-string">&quot;hf-internal-testing/reactiongif-roberta-card&quot;</span>, metadata)
`,wrap:!1}}),{c(){r=p("p"),r.textContent=C,_=s(),g(i.$$.fragment)},l(a){r=d(a,"P",{"data-svelte-h":!0}),b(r)!=="svelte-11lpom8"&&(r.textContent=C),_=n(a),m(i.$$.fragment,a)},m(a,j){c(a,r,j),c(a,_,j),h(i,a,j),y=!0},p:Q,i(a){y||(u(i.$$.fragment,a),y=!0)},o(a){M(i.$$.fragment,a),y=!1},d(a){a&&(t(r),t(_)),f(i,a)}}}function Kn(w){let r,C,_,i,y,a,j,ot,Je,Ls=`The huggingface_hub library provides a Python interface to create, share, and update Model/Dataset Cards.
Visit the <a href="https://huggingface.co/docs/hub/models-cards" rel="nofollow">dedicated documentation page</a> for a deeper view of what
Model Cards on the Hub are, and how they work under the hood. You can also check out our <a href="../how-to-model-cards">Model Cards guide</a> to
get a feel for how you would use these utilities in your own projects.`,rt,we,it,Te,Os='The <code>RepoCard</code> object is the parent class of <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.ModelCard">ModelCard</a>, <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.DatasetCard">DatasetCard</a> and <code>SpaceCard</code>.',ct,v,ve,qt,Z,Ae,zt,Ja,Ps=`Initialize a RepoCard from string content. The content should be a
Markdown file with a YAML block at the beginning and a Markdown body.`,Lt,se,Ot,Pt,X,$e,Kt,wa,Ks="Initialize a RepoCard from a template. By default, it uses the default template.",es,Ta,en="Templates are Jinja2 templates that can be customized by passing keyword arguments.",as,V,Ie,ts,va,an="Initialize a RepoCard from a Hugging Face Hub repo’s README.md or a local filepath.",ss,ne,ns,le,De,ls,Aa,tn="Push a RepoCard to a Hugging Face Hub repo.",os,H,ke,rs,$a,sn="Save a RepoCard to a file.",is,oe,cs,q,Ee,ps,Ia,nn=`Validates card against Hugging Face Hub’s card validation logic.
Using this function requires access to the internet, so it is only called
internally by <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.RepoCard.push_to_hub">huggingface_hub.repocard.RepoCard.push_to_hub()</a>.`,ds,Re,ln=`<p>Raises the following errors:</p> <ul><li><a href="https://docs.python.org/3/library/exceptions.html#ValueError" rel="nofollow"><code>ValueError</code></a>
if the card fails validation checks.</li> <li><a href="https://requests.readthedocs.io/en/latest/api/#requests.HTTPError" rel="nofollow"><code>HTTPError</code></a>
if the request to the Hub API fails for any other reason.</li></ul>`,pt,Ne,dt,Ze,on='The <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.CardData">CardData</a> object is the parent class of <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.ModelCardData">ModelCardData</a> and <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.DatasetCardData">DatasetCardData</a>.',gt,T,We,gs,Da,rn="Structure containing metadata from a RepoCard.",ms,ka,cn='<a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.CardData">CardData</a> is the parent class of <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.ModelCardData">ModelCardData</a> and <a href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.DatasetCardData">DatasetCardData</a>.',hs,Ea,pn=`Metadata can be exported as a dictionary or YAML. Export can be customized to alter the representation of the data
(example: flatten evaluation results). <code>CardData</code> behaves as a dictionary (can get, pop, set values) but do not
inherit from <code>dict</code> to allow this export step.`,us,re,Ge,Ms,Ra,dn="Get value for a given metadata key.",fs,ie,Ye,ys,Na,gn="Pop value for a given metadata key.",_s,ce,Se,js,Za,mn="Converts CardData to a dict.",bs,pe,Be,Cs,Wa,hn="Dumps CardData to a YAML block for inclusion in a README.md file.",mt,Qe,ht,Fe,ut,L,Xe,xs,R,Ve,Us,Ga,un=`Initialize a ModelCard from a template. By default, it uses the default template, which can be found here:
<a href="https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md" rel="nofollow">https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md</a>`,Js,Ya,Mn="Templates are Jinja2 templates that can be customized by passing keyword arguments.",ws,de,Mt,He,ft,W,qe,Ts,Sa,fn="Model Card Metadata that is used by Hugging Face Hub when included at the top of your README.md",vs,ge,yt,ze,_t,Le,yn="Dataset cards are also known as Data Cards in the ML Community.",jt,Oe,bt,O,Pe,As,N,Ke,$s,Ba,_n=`Initialize a DatasetCard from a template. By default, it uses the default template, which can be found here:
<a href="https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md" rel="nofollow">https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md</a>`,Is,Qa,jn="Templates are Jinja2 templates that can be customized by passing keyword arguments.",Ds,me,Ct,ea,xt,P,aa,ks,Fa,bn="Dataset Card Metadata that is used by Hugging Face Hub when included at the top of your README.md",Ut,ta,Jt,sa,wt,na,la,Tt,oa,vt,D,ra,Es,Xa,Cn="Space Card Metadata that is used by Hugging Face Hub when included at the top of your README.md",Rs,Va,xn='To get an exhaustive reference of Spaces configuration, please visit <a href="https://huggingface.co/docs/hub/spaces-config-reference#spaces-configuration-reference" rel="nofollow">https://huggingface.co/docs/hub/spaces-config-reference#spaces-configuration-reference</a>.',Ns,he,At,ia,$t,ca,It,k,pa,Zs,Ha,Un="Flattened representation of individual evaluation results found in model-index of Model Cards.",Ws,qa,Jn='For more information on the model-index spec, see <a href="https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1" rel="nofollow">https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1</a>.',Gs,ue,da,Ys,za,wn=`Return True if <code>self</code> and <code>other</code> describe exactly the same metric but with a
different value.`,Dt,ga,kt,E,ma,Ss,La,Tn="Takes in a model index and returns the model name and a list of <code>huggingface_hub.EvalResult</code> objects.",Bs,Oa,vn=`A detailed spec of the model index can be found here:
<a href="https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1" rel="nofollow">https://github.com/huggingface/hub-docs/blob/main/modelcard.md?plain=1</a>`,Qs,Me,Et,ha,Rt,G,ua,Fs,Pa,An=`Takes in given model name and list of <code>huggingface_hub.EvalResult</code> and returns a
valid model-index that will be compatible with the format expected by the
Hugging Face Hub.`,Xs,fe,Nt,Ma,Zt,Y,fa,Vs,Ka,$n="Creates a metadata dict with the result from a model evaluated on a dataset.",Hs,ye,Wt,ya,Gt,S,_a,qs,et,In=`Updates the metadata in the README.md of a repository on the Hugging Face Hub.
If the README.md file doesn’t exist yet, a new one is created with metadata and
the default ModelCard or DatasetCard template. For <code>space</code> repo, an error is thrown
as a Space cannot exist without a <code>README.md</code> file.`,zs,_e,Yt,ja,St,lt,Bt;return y=new Yn({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),j=new $({props:{title:"Repository Cards",local:"repository-cards",headingTag:"h1"}}),we=new $({props:{title:"Repo Card",local:"huggingface_hub.RepoCard",headingTag:"h2"}}),ve=new J({props:{name:"class huggingface_hub.RepoCard",anchor:"huggingface_hub.RepoCard",parameters:[{name:"content",val:": str"},{name:"ignore_metadata_errors",val:": bool = False"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L37"}}),Ae=new J({props:{name:"__init__",anchor:"huggingface_hub.RepoCard.__init__",parameters:[{name:"content",val:": str"},{name:"ignore_metadata_errors",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.RepoCard.__init__.content",description:"<strong>content</strong> (<code>str</code>) &#x2014; The content of the Markdown file.",name:"content"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L42"}}),se=new B({props:{anchor:"huggingface_hub.RepoCard.__init__.example",$$slots:{default:[Bn]},$$scope:{ctx:w}}}),$e=new J({props:{name:"from_template",anchor:"huggingface_hub.RepoCard.from_template",parameters:[{name:"card_data",val:": CardData"},{name:"template_path",val:": typing.Optional[str] = None"},{name:"template_str",val:": typing.Optional[str] = None"},{name:"**template_kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.RepoCard.from_template.card_data",description:`<strong>card_data</strong> (<code>huggingface_hub.CardData</code>) &#x2014;
A huggingface_hub.CardData instance containing the metadata you want to include in the YAML
header of the repo card on the Hugging Face Hub.`,name:"card_data"},{anchor:"huggingface_hub.RepoCard.from_template.template_path",description:`<strong>template_path</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A path to a markdown file with optional Jinja template variables that can be filled
in with <code>template_kwargs</code>. Defaults to the default template.`,name:"template_path"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L289",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A RepoCard instance with the specified card data and content from the
template.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.RepoCard"
>huggingface_hub.repocard.RepoCard</a></p>
`}}),Ie=new J({props:{name:"load",anchor:"huggingface_hub.RepoCard.load",parameters:[{name:"repo_id_or_path",val:": typing.Union[str, pathlib.Path]"},{name:"repo_type",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Optional[str] = None"},{name:"ignore_metadata_errors",val:": bool = False"}],parametersDescription:[{anchor:"huggingface_hub.RepoCard.load.repo_id_or_path",description:`<strong>repo_id_or_path</strong> (<code>Union[str, Path]</code>) &#x2014;
The repo ID associated with a Hugging Face Hub repo or a local filepath.`,name:"repo_id_or_path"},{anchor:"huggingface_hub.RepoCard.load.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The type of Hugging Face repo to push to. Defaults to None, which will use &#x201C;model&#x201D;. Other options
are &#x201C;dataset&#x201D; and &#x201C;space&#x201D;. Not used when loading from a local filepath. If this is called from a child
class, the default value will be the child class&#x2019;s <code>repo_type</code>.`,name:"repo_type"},{anchor:"huggingface_hub.RepoCard.load.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>huggingface_hub.HfApi.login</code> method. Will default to the stored token.`,name:"token"},{anchor:"huggingface_hub.RepoCard.load.ignore_metadata_errors",description:`<strong>ignore_metadata_errors</strong> (<code>str</code>) &#x2014;
If True, errors while parsing the metadata section will be ignored. Some information might be lost during
the process. Use it at your own risk.`,name:"ignore_metadata_errors"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L135",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The RepoCard (or subclass) initialized from the repo’s
README.md file or filepath.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.RepoCard"
>huggingface_hub.repocard.RepoCard</a></p>
`}}),ne=new B({props:{anchor:"huggingface_hub.RepoCard.load.example",$$slots:{default:[Qn]},$$scope:{ctx:w}}}),De=new J({props:{name:"push_to_hub",anchor:"huggingface_hub.RepoCard.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": typing.Optional[str] = None"},{name:"repo_type",val:": typing.Optional[str] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"commit_description",val:": typing.Optional[str] = None"},{name:"revision",val:": typing.Optional[str] = None"},{name:"create_pr",val:": typing.Optional[bool] = None"},{name:"parent_commit",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.RepoCard.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The repo ID of the Hugging Face Hub repo to push to. Example: &#x201C;nateraw/food&#x201D;.`,name:"repo_id"},{anchor:"huggingface_hub.RepoCard.push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Authentication token, obtained with <code>huggingface_hub.HfApi.login</code> method. Will default to
the stored token.`,name:"token"},{anchor:"huggingface_hub.RepoCard.push_to_hub.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>, defaults to &#x201C;model&#x201D;) &#x2014;
The type of Hugging Face repo to push to. Options are &#x201C;model&#x201D;, &#x201C;dataset&#x201D;, and &#x201C;space&#x201D;. If this
function is called by a child class, it will default to the child class&#x2019;s <code>repo_type</code>.`,name:"repo_type"},{anchor:"huggingface_hub.RepoCard.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The summary / title / first line of the generated commit.`,name:"commit_message"},{anchor:"huggingface_hub.RepoCard.push_to_hub.commit_description",description:`<strong>commit_description</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The description of the generated commit.`,name:"commit_description"},{anchor:"huggingface_hub.RepoCard.push_to_hub.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the <code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.RepoCard.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether or not to create a Pull Request with this commit. Defaults to <code>False</code>.`,name:"create_pr"},{anchor:"huggingface_hub.RepoCard.push_to_hub.parent_commit",description:`<strong>parent_commit</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The OID / SHA of the parent commit, as a hexadecimal string. Shorthands (7 first characters) are also supported.
If specified and <code>create_pr</code> is <code>False</code>, the commit will fail if <code>revision</code> does not point to <code>parent_commit</code>.
If specified and <code>create_pr</code> is <code>True</code>, the pull request will be created from <code>parent_commit</code>.
Specifying <code>parent_commit</code> ensures the repo has not changed before committing the changes, and can be
especially useful if the repo is updated / committed too concurrently.`,name:"parent_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L226",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>URL of the commit which updated the card metadata.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),ke=new J({props:{name:"save",anchor:"huggingface_hub.RepoCard.save",parameters:[{name:"filepath",val:": typing.Union[pathlib.Path, str]"}],parametersDescription:[{anchor:"huggingface_hub.RepoCard.save.filepath",description:"<strong>filepath</strong> (<code>Union[Path, str]</code>) &#x2014; Filepath to the markdown file to save.",name:"filepath"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L115"}}),oe=new B({props:{anchor:"huggingface_hub.RepoCard.save.example",$$slots:{default:[Fn]},$$scope:{ctx:w}}}),Ee=new J({props:{name:"validate",anchor:"huggingface_hub.RepoCard.validate",parameters:[{name:"repo_type",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.RepoCard.validate.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>, defaults to &#x201C;model&#x201D;) &#x2014;
The type of Hugging Face repo to push to. Options are &#x201C;model&#x201D;, &#x201C;dataset&#x201D;, and &#x201C;space&#x201D;.
If this function is called from a child class, the default will be the child class&#x2019;s <code>repo_type</code>.`,name:"repo_type"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L189"}}),Ne=new $({props:{title:"Card Data",local:"huggingface_hub.CardData",headingTag:"h2"}}),We=new J({props:{name:"class huggingface_hub.CardData",anchor:"huggingface_hub.CardData",parameters:[{name:"ignore_metadata_errors",val:": bool = False"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L165"}}),Ge=new J({props:{name:"get",anchor:"huggingface_hub.CardData.get",parameters:[{name:"key",val:": str"},{name:"default",val:": typing.Any = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L222"}}),Ye=new J({props:{name:"pop",anchor:"huggingface_hub.CardData.pop",parameters:[{name:"key",val:": str"},{name:"default",val:": typing.Any = None"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L227"}}),Se=new J({props:{name:"to_dict",anchor:"huggingface_hub.CardData.to_dict",parameters:[],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L178",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>CardData represented as a dictionary ready to be dumped to a YAML
block for inclusion in a README.md file.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Be=new J({props:{name:"to_yaml",anchor:"huggingface_hub.CardData.to_yaml",parameters:[{name:"line_break",val:" = None"},{name:"original_order",val:": typing.Optional[list[str]] = None"}],parametersDescription:[{anchor:"huggingface_hub.CardData.to_yaml.line_break",description:`<strong>line_break</strong> (str, <em>optional</em>) &#x2014;
The line break to use when dumping to yaml.`,name:"line_break"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L198",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>CardData represented as a YAML block.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),Qe=new $({props:{title:"Model Cards",local:"model-cards",headingTag:"h2"}}),Fe=new $({props:{title:"ModelCard",local:"huggingface_hub.ModelCard",headingTag:"h3"}}),Xe=new J({props:{name:"class huggingface_hub.ModelCard",anchor:"huggingface_hub.ModelCard",parameters:[{name:"content",val:": str"},{name:"ignore_metadata_errors",val:": bool = False"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L333"}}),Ve=new J({props:{name:"from_template",anchor:"huggingface_hub.ModelCard.from_template",parameters:[{name:"card_data",val:": ModelCardData"},{name:"template_path",val:": typing.Optional[str] = None"},{name:"template_str",val:": typing.Optional[str] = None"},{name:"**template_kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.ModelCard.from_template.card_data",description:`<strong>card_data</strong> (<code>huggingface_hub.ModelCardData</code>) &#x2014;
A huggingface_hub.ModelCardData instance containing the metadata you want to include in the YAML
header of the model card on the Hugging Face Hub.`,name:"card_data"},{anchor:"huggingface_hub.ModelCard.from_template.template_path",description:`<strong>template_path</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A path to a markdown file with optional Jinja template variables that can be filled
in with <code>template_kwargs</code>. Defaults to the default template.`,name:"template_path"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L338",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A ModelCard instance with the specified card data and content from the
template.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.ModelCard"
>huggingface_hub.ModelCard</a></p>
`}}),de=new B({props:{anchor:"huggingface_hub.ModelCard.from_template.example",$$slots:{default:[Xn]},$$scope:{ctx:w}}}),He=new $({props:{title:"ModelCardData",local:"huggingface_hub.ModelCardData",headingTag:"h3"}}),qe=new J({props:{name:"class huggingface_hub.ModelCardData",anchor:"huggingface_hub.ModelCardData",parameters:[{name:"base_model",val:": typing.Union[list[str], str, NoneType] = None"},{name:"datasets",val:": typing.Union[list[str], str, NoneType] = None"},{name:"eval_results",val:": typing.Optional[list[huggingface_hub.repocard_data.EvalResult]] = None"},{name:"language",val:": typing.Union[list[str], str, NoneType] = None"},{name:"library_name",val:": typing.Optional[str] = None"},{name:"license",val:": typing.Optional[str] = None"},{name:"license_name",val:": typing.Optional[str] = None"},{name:"license_link",val:": typing.Optional[str] = None"},{name:"metrics",val:": typing.Optional[list[str]] = None"},{name:"model_name",val:": typing.Optional[str] = None"},{name:"pipeline_tag",val:": typing.Optional[str] = None"},{name:"tags",val:": typing.Optional[list[str]] = None"},{name:"ignore_metadata_errors",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.ModelCardData.base_model",description:`<strong>base_model</strong> (<code>str</code> or <code>list[str]</code>, <em>optional</em>) &#x2014;
The identifier of the base model from which the model derives. This is applicable for example if your model is a
fine-tune or adapter of an existing model. The value must be the ID of a model on the Hub (or a list of IDs
if your model derives from multiple models). Defaults to None.`,name:"base_model"},{anchor:"huggingface_hub.ModelCardData.datasets",description:`<strong>datasets</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
Dataset or list of datasets that were used to train this model. Should be a dataset ID
found on <a href="https://hf.co/datasets" rel="nofollow">https://hf.co/datasets</a>. Defaults to None.`,name:"datasets"},{anchor:"huggingface_hub.ModelCardData.eval_results",description:`<strong>eval_results</strong> (<code>Union[list[EvalResult], EvalResult]</code>, <em>optional</em>) &#x2014;
List of <code>huggingface_hub.EvalResult</code> that define evaluation results of the model. If provided,
<code>model_name</code> is used to as a name on PapersWithCode&#x2019;s leaderboards. Defaults to <code>None</code>.`,name:"eval_results"},{anchor:"huggingface_hub.ModelCardData.language",description:`<strong>language</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
Language of model&#x2019;s training data or metadata. It must be an ISO 639-1, 639-2 or
639-3 code (two/three letters), or a special value like &#x201C;code&#x201D;, &#x201C;multilingual&#x201D;. Defaults to <code>None</code>.`,name:"language"},{anchor:"huggingface_hub.ModelCardData.library_name",description:`<strong>library_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of library used by this model. Example: keras or any library from
<a href="https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/model-libraries.ts" rel="nofollow">https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/model-libraries.ts</a>.
Defaults to None.`,name:"library_name"},{anchor:"huggingface_hub.ModelCardData.license",description:`<strong>license</strong> (<code>str</code>, <em>optional</em>) &#x2014;
License of this model. Example: apache-2.0 or any license from
<a href="https://huggingface.co/docs/hub/repositories-licenses" rel="nofollow">https://huggingface.co/docs/hub/repositories-licenses</a>. Defaults to None.`,name:"license"},{anchor:"huggingface_hub.ModelCardData.license_name",description:`<strong>license_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of the license of this model. Defaults to None. To be used in conjunction with <code>license_link</code>.
Common licenses (Apache-2.0, MIT, CC-BY-SA-4.0) do not need a name. In that case, use <code>license</code> instead.`,name:"license_name"},{anchor:"huggingface_hub.ModelCardData.license_link",description:`<strong>license_link</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Link to the license of this model. Defaults to None. To be used in conjunction with <code>license_name</code>.
Common licenses (Apache-2.0, MIT, CC-BY-SA-4.0) do not need a link. In that case, use <code>license</code> instead.`,name:"license_link"},{anchor:"huggingface_hub.ModelCardData.metrics",description:`<strong>metrics</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014;
List of metrics used to evaluate this model. Should be a metric name that can be found
at <a href="https://hf.co/metrics" rel="nofollow">https://hf.co/metrics</a>. Example: &#x2018;accuracy&#x2019;. Defaults to None.`,name:"metrics"},{anchor:"huggingface_hub.ModelCardData.model_name",description:`<strong>model_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A name for this model. It is used along with
<code>eval_results</code> to construct the <code>model-index</code> within the card&#x2019;s metadata. The name
you supply here is what will be used on PapersWithCode&#x2019;s leaderboards. If None is provided
then the repo name is used as a default. Defaults to None.`,name:"model_name"},{anchor:"huggingface_hub.ModelCardData.pipeline_tag",description:`<strong>pipeline_tag</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The pipeline tag associated with the model. Example: &#x201C;text-classification&#x201D;.`,name:"pipeline_tag"},{anchor:"huggingface_hub.ModelCardData.tags",description:`<strong>tags</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014;
List of tags to add to your model that can be used when filtering on the Hugging
Face Hub. Defaults to None.`,name:"tags"},{anchor:"huggingface_hub.ModelCardData.ignore_metadata_errors",description:`<strong>ignore_metadata_errors</strong> (<code>str</code>) &#x2014;
If True, errors while parsing the metadata section will be ignored. Some information might be lost during
the process. Use it at your own risk.`,name:"ignore_metadata_errors"},{anchor:"huggingface_hub.ModelCardData.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional metadata that will be added to the model card. Defaults to None.`,name:"kwargs"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L265"}}),ge=new B({props:{anchor:"huggingface_hub.ModelCardData.example",$$slots:{default:[Vn]},$$scope:{ctx:w}}}),ze=new $({props:{title:"Dataset Cards",local:"dataset-cards",headingTag:"h2"}}),Oe=new $({props:{title:"DatasetCard",local:"huggingface_hub.DatasetCard",headingTag:"h3"}}),Pe=new J({props:{name:"class huggingface_hub.DatasetCard",anchor:"huggingface_hub.DatasetCard",parameters:[{name:"content",val:": str"},{name:"ignore_metadata_errors",val:": bool = False"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L414"}}),Ke=new J({props:{name:"from_template",anchor:"huggingface_hub.DatasetCard.from_template",parameters:[{name:"card_data",val:": DatasetCardData"},{name:"template_path",val:": typing.Optional[str] = None"},{name:"template_str",val:": typing.Optional[str] = None"},{name:"**template_kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.DatasetCard.from_template.card_data",description:`<strong>card_data</strong> (<code>huggingface_hub.DatasetCardData</code>) &#x2014;
A huggingface_hub.DatasetCardData instance containing the metadata you want to include in the YAML
header of the dataset card on the Hugging Face Hub.`,name:"card_data"},{anchor:"huggingface_hub.DatasetCard.from_template.template_path",description:`<strong>template_path</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A path to a markdown file with optional Jinja template variables that can be filled
in with <code>template_kwargs</code>. Defaults to the default template.`,name:"template_path"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L419",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A DatasetCard instance with the specified card data and content from the
template.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a
  href="/docs/huggingface_hub/main/en/package_reference/cards#huggingface_hub.DatasetCard"
>huggingface_hub.DatasetCard</a></p>
`}}),me=new B({props:{anchor:"huggingface_hub.DatasetCard.from_template.example",$$slots:{default:[Hn]},$$scope:{ctx:w}}}),ea=new $({props:{title:"DatasetCardData",local:"huggingface_hub.DatasetCardData",headingTag:"h3"}}),aa=new J({props:{name:"class huggingface_hub.DatasetCardData",anchor:"huggingface_hub.DatasetCardData",parameters:[{name:"language",val:": typing.Union[list[str], str, NoneType] = None"},{name:"license",val:": typing.Union[list[str], str, NoneType] = None"},{name:"annotations_creators",val:": typing.Union[list[str], str, NoneType] = None"},{name:"language_creators",val:": typing.Union[list[str], str, NoneType] = None"},{name:"multilinguality",val:": typing.Union[list[str], str, NoneType] = None"},{name:"size_categories",val:": typing.Union[list[str], str, NoneType] = None"},{name:"source_datasets",val:": typing.Optional[list[str]] = None"},{name:"task_categories",val:": typing.Union[list[str], str, NoneType] = None"},{name:"task_ids",val:": typing.Union[list[str], str, NoneType] = None"},{name:"paperswithcode_id",val:": typing.Optional[str] = None"},{name:"pretty_name",val:": typing.Optional[str] = None"},{name:"train_eval_index",val:": typing.Optional[dict] = None"},{name:"config_names",val:": typing.Union[list[str], str, NoneType] = None"},{name:"ignore_metadata_errors",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.DatasetCardData.language",description:`<strong>language</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014;
Language of dataset&#x2019;s data or metadata. It must be an ISO 639-1, 639-2 or
639-3 code (two/three letters), or a special value like &#x201C;code&#x201D;, &#x201C;multilingual&#x201D;.`,name:"language"},{anchor:"huggingface_hub.DatasetCardData.license",description:`<strong>license</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
License(s) of this dataset. Example: apache-2.0 or any license from
<a href="https://huggingface.co/docs/hub/repositories-licenses" rel="nofollow">https://huggingface.co/docs/hub/repositories-licenses</a>.`,name:"license"},{anchor:"huggingface_hub.DatasetCardData.annotations_creators",description:`<strong>annotations_creators</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
How the annotations for the dataset were created.
Options are: &#x2018;found&#x2019;, &#x2018;crowdsourced&#x2019;, &#x2018;expert-generated&#x2019;, &#x2018;machine-generated&#x2019;, &#x2018;no-annotation&#x2019;, &#x2018;other&#x2019;.`,name:"annotations_creators"},{anchor:"huggingface_hub.DatasetCardData.language_creators",description:`<strong>language_creators</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
How the text-based data in the dataset was created.
Options are: &#x2018;found&#x2019;, &#x2018;crowdsourced&#x2019;, &#x2018;expert-generated&#x2019;, &#x2018;machine-generated&#x2019;, &#x2018;other&#x2019;`,name:"language_creators"},{anchor:"huggingface_hub.DatasetCardData.multilinguality",description:`<strong>multilinguality</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
Whether the dataset is multilingual.
Options are: &#x2018;monolingual&#x2019;, &#x2018;multilingual&#x2019;, &#x2018;translation&#x2019;, &#x2018;other&#x2019;.`,name:"multilinguality"},{anchor:"huggingface_hub.DatasetCardData.size_categories",description:`<strong>size_categories</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
The number of examples in the dataset. Options are: &#x2018;n&lt;1K&#x2019;, &#x2018;1K<n<10k’, ‘10k<n<100k’, ‘100k<n<1m’, ‘1m<n<10m’, ‘10m<n<100m’, ‘100m<n<1b’, ‘1b<n<10b’, ‘10b<n<100b’, ‘100b<n<1t’, ‘n>1T&#x2019;, and &#x2018;other&#x2019;.</n<10k’,>`,name:"size_categories"},{anchor:"huggingface_hub.DatasetCardData.source_datasets",description:`<strong>source_datasets</strong> (<code>list[str]]</code>, <em>optional</em>) &#x2014;
Indicates whether the dataset is an original dataset or extended from another existing dataset.
Options are: &#x2018;original&#x2019; and &#x2018;extended&#x2019;.`,name:"source_datasets"},{anchor:"huggingface_hub.DatasetCardData.task_categories",description:`<strong>task_categories</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
What categories of task does the dataset support?`,name:"task_categories"},{anchor:"huggingface_hub.DatasetCardData.task_ids",description:`<strong>task_ids</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
What specific tasks does the dataset support?`,name:"task_ids"},{anchor:"huggingface_hub.DatasetCardData.paperswithcode_id",description:`<strong>paperswithcode_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
ID of the dataset on PapersWithCode.`,name:"paperswithcode_id"},{anchor:"huggingface_hub.DatasetCardData.pretty_name",description:`<strong>pretty_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A more human-readable name for the dataset. (ex. &#x201C;Cats vs. Dogs&#x201D;)`,name:"pretty_name"},{anchor:"huggingface_hub.DatasetCardData.train_eval_index",description:`<strong>train_eval_index</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
A dictionary that describes the necessary spec for doing evaluation on the Hub.
If not provided, it will be gathered from the &#x2018;train-eval-index&#x2019; key of the kwargs.`,name:"train_eval_index"},{anchor:"huggingface_hub.DatasetCardData.config_names",description:`<strong>config_names</strong> (<code>Union[str, list[str]]</code>, <em>optional</em>) &#x2014;
A list of the available dataset configs for the dataset.`,name:"config_names"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L394"}}),ta=new $({props:{title:"Space Cards",local:"space-cards",headingTag:"h2"}}),sa=new $({props:{title:"SpaceCard",local:"huggingface_hub.SpaceCard",headingTag:"h3"}}),la=new J({props:{name:"class huggingface_hub.SpaceCard",anchor:"huggingface_hub.SpaceCard",parameters:[{name:"content",val:": str"},{name:"ignore_metadata_errors",val:": bool = False"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L479"}}),oa=new $({props:{title:"SpaceCardData",local:"huggingface_hub.SpaceCardData",headingTag:"h3"}}),ra=new J({props:{name:"class huggingface_hub.SpaceCardData",anchor:"huggingface_hub.SpaceCardData",parameters:[{name:"title",val:": typing.Optional[str] = None"},{name:"sdk",val:": typing.Optional[str] = None"},{name:"sdk_version",val:": typing.Optional[str] = None"},{name:"python_version",val:": typing.Optional[str] = None"},{name:"app_file",val:": typing.Optional[str] = None"},{name:"app_port",val:": typing.Optional[int] = None"},{name:"license",val:": typing.Optional[str] = None"},{name:"duplicated_from",val:": typing.Optional[str] = None"},{name:"models",val:": typing.Optional[list[str]] = None"},{name:"datasets",val:": typing.Optional[list[str]] = None"},{name:"tags",val:": typing.Optional[list[str]] = None"},{name:"ignore_metadata_errors",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"huggingface_hub.SpaceCardData.title",description:`<strong>title</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Title of the Space.`,name:"title"},{anchor:"huggingface_hub.SpaceCardData.sdk",description:`<strong>sdk</strong> (<code>str</code>, <em>optional</em>) &#x2014;
SDK of the Space (one of <code>gradio</code>, <code>streamlit</code>, <code>docker</code>, or <code>static</code>).`,name:"sdk"},{anchor:"huggingface_hub.SpaceCardData.sdk_version",description:`<strong>sdk_version</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Version of the used SDK (if Gradio/Streamlit sdk).`,name:"sdk_version"},{anchor:"huggingface_hub.SpaceCardData.python_version",description:`<strong>python_version</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Python version used in the Space (if Gradio/Streamlit sdk).`,name:"python_version"},{anchor:"huggingface_hub.SpaceCardData.app_file",description:`<strong>app_file</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Path to your main application file (which contains either gradio or streamlit Python code, or static html code).
Path is relative to the root of the repository.`,name:"app_file"},{anchor:"huggingface_hub.SpaceCardData.app_port",description:`<strong>app_port</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Port on which your application is running. Used only if sdk is <code>docker</code>.`,name:"app_port"},{anchor:"huggingface_hub.SpaceCardData.license",description:`<strong>license</strong> (<code>str</code>, <em>optional</em>) &#x2014;
License of this model. Example: apache-2.0 or any license from
<a href="https://huggingface.co/docs/hub/repositories-licenses" rel="nofollow">https://huggingface.co/docs/hub/repositories-licenses</a>.`,name:"license"},{anchor:"huggingface_hub.SpaceCardData.duplicated_from",description:`<strong>duplicated_from</strong> (<code>str</code>, <em>optional</em>) &#x2014;
ID of the original Space if this is a duplicated Space.`,name:"duplicated_from"},{anchor:"huggingface_hub.SpaceCardData.models",description:`<strong>models</strong> (list<code>str</code>, <em>optional</em>) &#x2014;
List of models related to this Space. Should be a dataset ID found on <a href="https://hf.co/models" rel="nofollow">https://hf.co/models</a>.`,name:"models"},{anchor:"huggingface_hub.SpaceCardData.datasets",description:`<strong>datasets</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014;
List of datasets related to this Space. Should be a dataset ID found on <a href="https://hf.co/datasets" rel="nofollow">https://hf.co/datasets</a>.`,name:"datasets"},{anchor:"huggingface_hub.SpaceCardData.tags",description:`<strong>tags</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014;
List of tags to add to your Space that can be used when filtering on the Hub.`,name:"tags"},{anchor:"huggingface_hub.SpaceCardData.ignore_metadata_errors",description:`<strong>ignore_metadata_errors</strong> (<code>str</code>) &#x2014;
If True, errors while parsing the metadata section will be ignored. Some information might be lost during
the process. Use it at your own risk.`,name:"ignore_metadata_errors"},{anchor:"huggingface_hub.SpaceCardData.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Additional metadata that will be added to the space card.`,name:"kwargs"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L474"}}),he=new B({props:{anchor:"huggingface_hub.SpaceCardData.example",$$slots:{default:[qn]},$$scope:{ctx:w}}}),ia=new $({props:{title:"Utilities",local:"utilities",headingTag:"h2"}}),ca=new $({props:{title:"EvalResult",local:"huggingface_hub.EvalResult",headingTag:"h3"}}),pa=new J({props:{name:"class huggingface_hub.EvalResult",anchor:"huggingface_hub.EvalResult",parameters:[{name:"task_type",val:": str"},{name:"dataset_type",val:": str"},{name:"dataset_name",val:": str"},{name:"metric_type",val:": str"},{name:"metric_value",val:": typing.Any"},{name:"task_name",val:": typing.Optional[str] = None"},{name:"dataset_config",val:": typing.Optional[str] = None"},{name:"dataset_split",val:": typing.Optional[str] = None"},{name:"dataset_revision",val:": typing.Optional[str] = None"},{name:"dataset_args",val:": typing.Optional[dict[str, typing.Any]] = None"},{name:"metric_name",val:": typing.Optional[str] = None"},{name:"metric_config",val:": typing.Optional[str] = None"},{name:"metric_args",val:": typing.Optional[dict[str, typing.Any]] = None"},{name:"verified",val:": typing.Optional[bool] = None"},{name:"verify_token",val:": typing.Optional[str] = None"},{name:"source_name",val:": typing.Optional[str] = None"},{name:"source_url",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.EvalResult.task_type",description:`<strong>task_type</strong> (<code>str</code>) &#x2014;
The task identifier. Example: &#x201C;image-classification&#x201D;.`,name:"task_type"},{anchor:"huggingface_hub.EvalResult.dataset_type",description:`<strong>dataset_type</strong> (<code>str</code>) &#x2014;
The dataset identifier. Example: &#x201C;common_voice&#x201D;. Use dataset id from <a href="https://hf.co/datasets" rel="nofollow">https://hf.co/datasets</a>.`,name:"dataset_type"},{anchor:"huggingface_hub.EvalResult.dataset_name",description:`<strong>dataset_name</strong> (<code>str</code>) &#x2014;
A pretty name for the dataset. Example: &#x201C;Common Voice (French)&#x201C;.`,name:"dataset_name"},{anchor:"huggingface_hub.EvalResult.metric_type",description:`<strong>metric_type</strong> (<code>str</code>) &#x2014;
The metric identifier. Example: &#x201C;wer&#x201D;. Use metric id from <a href="https://hf.co/metrics" rel="nofollow">https://hf.co/metrics</a>.`,name:"metric_type"},{anchor:"huggingface_hub.EvalResult.metric_value",description:`<strong>metric_value</strong> (<code>Any</code>) &#x2014;
The metric value. Example: 0.9 or &#x201C;20.0 &#xB1; 1.2&#x201D;.`,name:"metric_value"},{anchor:"huggingface_hub.EvalResult.task_name",description:`<strong>task_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A pretty name for the task. Example: &#x201C;Speech Recognition&#x201D;.`,name:"task_name"},{anchor:"huggingface_hub.EvalResult.dataset_config",description:`<strong>dataset_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the dataset configuration used in <code>load_dataset()</code>.
Example: fr in <code>load_dataset(&quot;common_voice&quot;, &quot;fr&quot;)</code>. See the <code>datasets</code> docs for more info:
<a href="https://hf.co/docs/datasets/package_reference/loading_methods#datasets.load_dataset.name" rel="nofollow">https://hf.co/docs/datasets/package_reference/loading_methods#datasets.load_dataset.name</a>`,name:"dataset_config"},{anchor:"huggingface_hub.EvalResult.dataset_split",description:`<strong>dataset_split</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The split used in <code>load_dataset()</code>. Example: &#x201C;test&#x201D;.`,name:"dataset_split"},{anchor:"huggingface_hub.EvalResult.dataset_revision",description:`<strong>dataset_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The revision (AKA Git Sha) of the dataset used in <code>load_dataset()</code>.
Example: 5503434ddd753f426f4b38109466949a1217c2bb`,name:"dataset_revision"},{anchor:"huggingface_hub.EvalResult.dataset_args",description:`<strong>dataset_args</strong> (<code>dict[str, Any]</code>, <em>optional</em>) &#x2014;
The arguments passed during <code>Metric.compute()</code>. Example for <code>bleu</code>: <code>{&quot;max_order&quot;: 4}</code>`,name:"dataset_args"},{anchor:"huggingface_hub.EvalResult.metric_name",description:`<strong>metric_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A pretty name for the metric. Example: &#x201C;Test WER&#x201D;.`,name:"metric_name"},{anchor:"huggingface_hub.EvalResult.metric_config",description:`<strong>metric_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the metric configuration used in <code>load_metric()</code>.
Example: bleurt-large-512 in <code>load_metric(&quot;bleurt&quot;, &quot;bleurt-large-512&quot;)</code>.
See the <code>datasets</code> docs for more info: <a href="https://huggingface.co/docs/datasets/v2.1.0/en/loading#load-configurations" rel="nofollow">https://huggingface.co/docs/datasets/v2.1.0/en/loading#load-configurations</a>`,name:"metric_config"},{anchor:"huggingface_hub.EvalResult.metric_args",description:`<strong>metric_args</strong> (<code>dict[str, Any]</code>, <em>optional</em>) &#x2014;
The arguments passed during <code>Metric.compute()</code>. Example for <code>bleu</code>: max_order: 4`,name:"metric_args"},{anchor:"huggingface_hub.EvalResult.verified",description:`<strong>verified</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Indicates whether the metrics originate from Hugging Face&#x2019;s <a href="https://huggingface.co/spaces/autoevaluate/model-evaluator" rel="nofollow">evaluation service</a> or not. Automatically computed by Hugging Face, do not set.`,name:"verified"},{anchor:"huggingface_hub.EvalResult.verify_token",description:`<strong>verify_token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
A JSON Web Token that is used to verify whether the metrics originate from Hugging Face&#x2019;s <a href="https://huggingface.co/spaces/autoevaluate/model-evaluator" rel="nofollow">evaluation service</a> or not.`,name:"verify_token"},{anchor:"huggingface_hub.EvalResult.source_name",description:`<strong>source_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the source of the evaluation result. Example: &#x201C;Open LLM Leaderboard&#x201D;.`,name:"source_name"},{anchor:"huggingface_hub.EvalResult.source_url",description:`<strong>source_url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The URL of the source of the evaluation result. Example: &#x201D;<a href="https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard%22" rel="nofollow">https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard&#x201D;</a>.`,name:"source_url"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L13"}}),da=new J({props:{name:"is_equal_except_value",anchor:"huggingface_hub.EvalResult.is_equal_except_value",parameters:[{name:"other",val:": EvalResult"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L145"}}),ga=new $({props:{title:"model_index_to_eval_results",local:"huggingface_hub.repocard_data.model_index_to_eval_results",headingTag:"h3"}}),ma=new J({props:{name:"huggingface_hub.repocard_data.model_index_to_eval_results",anchor:"huggingface_hub.repocard_data.model_index_to_eval_results",parameters:[{name:"model_index",val:": list"}],parametersDescription:[{anchor:"huggingface_hub.repocard_data.model_index_to_eval_results.model_index",description:`<strong>model_index</strong> (<code>list[dict[str, Any]]</code>) &#x2014;
A model index data structure, likely coming from a README.md file on the
Hugging Face Hub.`,name:"model_index"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L555",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The name of the model as found in the model index. This is used as the
identifier for the model on leaderboards like PapersWithCode.
eval_results (<code>list[EvalResult]</code>):
A list of <code>huggingface_hub.EvalResult</code> objects containing the metrics
reported in the provided model_index.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>model_name (<code>str</code>)</p>
`}}),Me=new B({props:{anchor:"huggingface_hub.repocard_data.model_index_to_eval_results.example",$$slots:{default:[zn]},$$scope:{ctx:w}}}),ha=new $({props:{title:"eval_results_to_model_index",local:"huggingface_hub.repocard_data.eval_results_to_model_index",headingTag:"h3"}}),ua=new J({props:{name:"huggingface_hub.repocard_data.eval_results_to_model_index",anchor:"huggingface_hub.repocard_data.eval_results_to_model_index",parameters:[{name:"model_name",val:": str"},{name:"eval_results",val:": list"}],parametersDescription:[{anchor:"huggingface_hub.repocard_data.eval_results_to_model_index.model_name",description:`<strong>model_name</strong> (<code>str</code>) &#x2014;
Name of the model (ex. &#x201C;my-cool-model&#x201D;). This is used as the identifier
for the model on leaderboards like PapersWithCode.`,name:"model_name"},{anchor:"huggingface_hub.repocard_data.eval_results_to_model_index.eval_results",description:`<strong>eval_results</strong> (<code>list[EvalResult]</code>) &#x2014;
List of <code>huggingface_hub.EvalResult</code> objects containing the metrics to be
reported in the model-index.`,name:"eval_results"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard_data.py#L671",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The eval_results converted to a model-index.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>model_index (<code>list[dict[str, Any]]</code>)</p>
`}}),fe=new B({props:{anchor:"huggingface_hub.repocard_data.eval_results_to_model_index.example",$$slots:{default:[Ln]},$$scope:{ctx:w}}}),Ma=new $({props:{title:"metadata_eval_result",local:"huggingface_hub.metadata_eval_result",headingTag:"h3"}}),fa=new J({props:{name:"huggingface_hub.metadata_eval_result",anchor:"huggingface_hub.metadata_eval_result",parameters:[{name:"model_pretty_name",val:": str"},{name:"task_pretty_name",val:": str"},{name:"task_id",val:": str"},{name:"metrics_pretty_name",val:": str"},{name:"metrics_id",val:": str"},{name:"metrics_value",val:": typing.Any"},{name:"dataset_pretty_name",val:": str"},{name:"dataset_id",val:": str"},{name:"metrics_config",val:": typing.Optional[str] = None"},{name:"metrics_verified",val:": bool = False"},{name:"dataset_config",val:": typing.Optional[str] = None"},{name:"dataset_split",val:": typing.Optional[str] = None"},{name:"dataset_revision",val:": typing.Optional[str] = None"},{name:"metrics_verification_token",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.metadata_eval_result.model_pretty_name",description:`<strong>model_pretty_name</strong> (<code>str</code>) &#x2014;
The name of the model in natural language.`,name:"model_pretty_name"},{anchor:"huggingface_hub.metadata_eval_result.task_pretty_name",description:`<strong>task_pretty_name</strong> (<code>str</code>) &#x2014;
The name of a task in natural language.`,name:"task_pretty_name"},{anchor:"huggingface_hub.metadata_eval_result.task_id",description:`<strong>task_id</strong> (<code>str</code>) &#x2014;
Example: automatic-speech-recognition. A task id.`,name:"task_id"},{anchor:"huggingface_hub.metadata_eval_result.metrics_pretty_name",description:`<strong>metrics_pretty_name</strong> (<code>str</code>) &#x2014;
A name for the metric in natural language. Example: Test WER.`,name:"metrics_pretty_name"},{anchor:"huggingface_hub.metadata_eval_result.metrics_id",description:`<strong>metrics_id</strong> (<code>str</code>) &#x2014;
Example: wer. A metric id from <a href="https://hf.co/metrics" rel="nofollow">https://hf.co/metrics</a>.`,name:"metrics_id"},{anchor:"huggingface_hub.metadata_eval_result.metrics_value",description:`<strong>metrics_value</strong> (<code>Any</code>) &#x2014;
The value from the metric. Example: 20.0 or &#x201C;20.0 &#xB1; 1.2&#x201D;.`,name:"metrics_value"},{anchor:"huggingface_hub.metadata_eval_result.dataset_pretty_name",description:`<strong>dataset_pretty_name</strong> (<code>str</code>) &#x2014;
The name of the dataset in natural language.`,name:"dataset_pretty_name"},{anchor:"huggingface_hub.metadata_eval_result.dataset_id",description:`<strong>dataset_id</strong> (<code>str</code>) &#x2014;
Example: common_voice. A dataset id from <a href="https://hf.co/datasets" rel="nofollow">https://hf.co/datasets</a>.`,name:"dataset_id"},{anchor:"huggingface_hub.metadata_eval_result.metrics_config",description:`<strong>metrics_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of the metric configuration used in <code>load_metric()</code>.
Example: bleurt-large-512 in <code>load_metric(&quot;bleurt&quot;, &quot;bleurt-large-512&quot;)</code>.`,name:"metrics_config"},{anchor:"huggingface_hub.metadata_eval_result.metrics_verified",description:`<strong>metrics_verified</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Indicates whether the metrics originate from Hugging Face&#x2019;s <a href="https://huggingface.co/spaces/autoevaluate/model-evaluator" rel="nofollow">evaluation service</a> or not. Automatically computed by Hugging Face, do not set.`,name:"metrics_verified"},{anchor:"huggingface_hub.metadata_eval_result.dataset_config",description:`<strong>dataset_config</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Example: fr. The name of the dataset configuration used in <code>load_dataset()</code>.`,name:"dataset_config"},{anchor:"huggingface_hub.metadata_eval_result.dataset_split",description:`<strong>dataset_split</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Example: test. The name of the dataset split used in <code>load_dataset()</code>.`,name:"dataset_split"},{anchor:"huggingface_hub.metadata_eval_result.dataset_revision",description:`<strong>dataset_revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Example: 5503434ddd753f426f4b38109466949a1217c2bb. The name of the dataset dataset revision
used in <code>load_dataset()</code>.`,name:"dataset_revision"},{anchor:"huggingface_hub.metadata_eval_result.metrics_verification_token",description:`<strong>metrics_verification_token</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
A JSON Web Token that is used to verify whether the metrics originate from Hugging Face&#x2019;s <a href="https://huggingface.co/spaces/autoevaluate/model-evaluator" rel="nofollow">evaluation service</a> or not.`,name:"metrics_verification_token"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L551",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>a metadata dict with the result from a model evaluated on a dataset.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),ye=new B({props:{anchor:"huggingface_hub.metadata_eval_result.example",$$slots:{default:[On]},$$scope:{ctx:w}}}),ya=new $({props:{title:"metadata_update",local:"huggingface_hub.metadata_update",headingTag:"h3"}}),_a=new J({props:{name:"huggingface_hub.metadata_update",anchor:"huggingface_hub.metadata_update",parameters:[{name:"repo_id",val:": str"},{name:"metadata",val:": dict"},{name:"repo_type",val:": typing.Optional[str] = None"},{name:"overwrite",val:": bool = False"},{name:"token",val:": typing.Optional[str] = None"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"commit_description",val:": typing.Optional[str] = None"},{name:"revision",val:": typing.Optional[str] = None"},{name:"create_pr",val:": bool = False"},{name:"parent_commit",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"huggingface_hub.metadata_update.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository.`,name:"repo_id"},{anchor:"huggingface_hub.metadata_update.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
A dictionary containing the metadata to be updated.`,name:"metadata"},{anchor:"huggingface_hub.metadata_update.repo_type",description:`<strong>repo_type</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Set to <code>&quot;dataset&quot;</code> or <code>&quot;space&quot;</code> if updating to a dataset or space,
<code>None</code> or <code>&quot;model&quot;</code> if updating to a model. Default is <code>None</code>.`,name:"repo_type"},{anchor:"huggingface_hub.metadata_update.overwrite",description:`<strong>overwrite</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If set to <code>True</code> an existing field can be overwritten, otherwise
attempting to overwrite an existing field will cause an error.`,name:"overwrite"},{anchor:"huggingface_hub.metadata_update.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The Hugging Face authentication token.`,name:"token"},{anchor:"huggingface_hub.metadata_update.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The summary / title / first line of the generated commit. Defaults to
<code>f&quot;Update metadata with huggingface_hub&quot;</code>`,name:"commit_message"},{anchor:"huggingface_hub.metadata_update.commit_description",description:`<strong>commit_description</strong> (<code>str</code> <em>optional</em>) &#x2014;
The description of the generated commit`,name:"commit_description"},{anchor:"huggingface_hub.metadata_update.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The git revision to commit from. Defaults to the head of the
<code>&quot;main&quot;</code> branch.`,name:"revision"},{anchor:"huggingface_hub.metadata_update.create_pr",description:`<strong>create_pr</strong> (<code>boolean</code>, <em>optional</em>) &#x2014;
Whether or not to create a Pull Request from <code>revision</code> with that commit.
Defaults to <code>False</code>.`,name:"create_pr"},{anchor:"huggingface_hub.metadata_update.parent_commit",description:`<strong>parent_commit</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The OID / SHA of the parent commit, as a hexadecimal string. Shorthands (7 first characters) are also supported.
If specified and <code>create_pr</code> is <code>False</code>, the commit will fail if <code>revision</code> does not point to <code>parent_commit</code>.
If specified and <code>create_pr</code> is <code>True</code>, the pull request will be created from <code>parent_commit</code>.
Specifying <code>parent_commit</code> ensures the repo has not changed before committing the changes, and can be
especially useful if the repo is updated / committed too concurrently.`,name:"parent_commit"}],source:"https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/repocard.py#L679",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>URL of the commit which updated the card metadata.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),_e=new B({props:{anchor:"huggingface_hub.metadata_update.example",$$slots:{default:[Pn]},$$scope:{ctx:w}}}),ja=new Sn({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/cards.md"}}),{c(){r=p("meta"),C=s(),_=p("p"),i=s(),g(y.$$.fragment),a=s(),g(j.$$.fragment),ot=s(),Je=p("p"),Je.innerHTML=Ls,rt=s(),g(we.$$.fragment),it=s(),Te=p("p"),Te.innerHTML=Os,ct=s(),v=p("div"),g(ve.$$.fragment),qt=s(),Z=p("div"),g(Ae.$$.fragment),zt=s(),Ja=p("p"),Ja.textContent=Ps,Lt=s(),g(se.$$.fragment),Ot=Zn(`
> [!TIP]
> Raises the following error:
>
>     - [\`ValueError\`](https://docs.python.org/3/library/exceptions.html#ValueError)
>       when the content of the repo card metadata is not a dictionary.`),Pt=s(),X=p("div"),g($e.$$.fragment),Kt=s(),wa=p("p"),wa.textContent=Ks,es=s(),Ta=p("p"),Ta.textContent=en,as=s(),V=p("div"),g(Ie.$$.fragment),ts=s(),va=p("p"),va.textContent=an,ss=s(),g(ne.$$.fragment),ns=s(),le=p("div"),g(De.$$.fragment),ls=s(),Aa=p("p"),Aa.textContent=tn,os=s(),H=p("div"),g(ke.$$.fragment),rs=s(),$a=p("p"),$a.textContent=sn,is=s(),g(oe.$$.fragment),cs=s(),q=p("div"),g(Ee.$$.fragment),ps=s(),Ia=p("p"),Ia.innerHTML=nn,ds=s(),Re=p("blockquote"),Re.innerHTML=ln,pt=s(),g(Ne.$$.fragment),dt=s(),Ze=p("p"),Ze.innerHTML=on,gt=s(),T=p("div"),g(We.$$.fragment),gs=s(),Da=p("p"),Da.textContent=rn,ms=s(),ka=p("p"),ka.innerHTML=cn,hs=s(),Ea=p("p"),Ea.innerHTML=pn,us=s(),re=p("div"),g(Ge.$$.fragment),Ms=s(),Ra=p("p"),Ra.textContent=dn,fs=s(),ie=p("div"),g(Ye.$$.fragment),ys=s(),Na=p("p"),Na.textContent=gn,_s=s(),ce=p("div"),g(Se.$$.fragment),js=s(),Za=p("p"),Za.textContent=mn,bs=s(),pe=p("div"),g(Be.$$.fragment),Cs=s(),Wa=p("p"),Wa.textContent=hn,mt=s(),g(Qe.$$.fragment),ht=s(),g(Fe.$$.fragment),ut=s(),L=p("div"),g(Xe.$$.fragment),xs=s(),R=p("div"),g(Ve.$$.fragment),Us=s(),Ga=p("p"),Ga.innerHTML=un,Js=s(),Ya=p("p"),Ya.textContent=Mn,ws=s(),g(de.$$.fragment),Mt=s(),g(He.$$.fragment),ft=s(),W=p("div"),g(qe.$$.fragment),Ts=s(),Sa=p("p"),Sa.textContent=fn,vs=s(),g(ge.$$.fragment),yt=s(),g(ze.$$.fragment),_t=s(),Le=p("p"),Le.textContent=yn,jt=s(),g(Oe.$$.fragment),bt=s(),O=p("div"),g(Pe.$$.fragment),As=s(),N=p("div"),g(Ke.$$.fragment),$s=s(),Ba=p("p"),Ba.innerHTML=_n,Is=s(),Qa=p("p"),Qa.textContent=jn,Ds=s(),g(me.$$.fragment),Ct=s(),g(ea.$$.fragment),xt=s(),P=p("div"),g(aa.$$.fragment),ks=s(),Fa=p("p"),Fa.textContent=bn,Ut=s(),g(ta.$$.fragment),Jt=s(),g(sa.$$.fragment),wt=s(),na=p("div"),g(la.$$.fragment),Tt=s(),g(oa.$$.fragment),vt=s(),D=p("div"),g(ra.$$.fragment),Es=s(),Xa=p("p"),Xa.textContent=Cn,Rs=s(),Va=p("p"),Va.innerHTML=xn,Ns=s(),g(he.$$.fragment),At=s(),g(ia.$$.fragment),$t=s(),g(ca.$$.fragment),It=s(),k=p("div"),g(pa.$$.fragment),Zs=s(),Ha=p("p"),Ha.textContent=Un,Ws=s(),qa=p("p"),qa.innerHTML=Jn,Gs=s(),ue=p("div"),g(da.$$.fragment),Ys=s(),za=p("p"),za.innerHTML=wn,Dt=s(),g(ga.$$.fragment),kt=s(),E=p("div"),g(ma.$$.fragment),Ss=s(),La=p("p"),La.innerHTML=Tn,Bs=s(),Oa=p("p"),Oa.innerHTML=vn,Qs=s(),g(Me.$$.fragment),Et=s(),g(ha.$$.fragment),Rt=s(),G=p("div"),g(ua.$$.fragment),Fs=s(),Pa=p("p"),Pa.innerHTML=An,Xs=s(),g(fe.$$.fragment),Nt=s(),g(Ma.$$.fragment),Zt=s(),Y=p("div"),g(fa.$$.fragment),Vs=s(),Ka=p("p"),Ka.textContent=$n,Hs=s(),g(ye.$$.fragment),Wt=s(),g(ya.$$.fragment),Gt=s(),S=p("div"),g(_a.$$.fragment),qs=s(),et=p("p"),et.innerHTML=In,zs=s(),g(_e.$$.fragment),Yt=s(),g(ja.$$.fragment),St=s(),lt=p("p"),this.h()},l(e){const l=Wn("svelte-u9bgzb",document.head);r=d(l,"META",{name:!0,content:!0}),l.forEach(t),C=n(e),_=d(e,"P",{}),U(_).forEach(t),i=n(e),m(y.$$.fragment,e),a=n(e),m(j.$$.fragment,e),ot=n(e),Je=d(e,"P",{"data-svelte-h":!0}),b(Je)!=="svelte-1iyhjbm"&&(Je.innerHTML=Ls),rt=n(e),m(we.$$.fragment,e),it=n(e),Te=d(e,"P",{"data-svelte-h":!0}),b(Te)!=="svelte-5dwc6h"&&(Te.innerHTML=Os),ct=n(e),v=d(e,"DIV",{class:!0});var I=U(v);m(ve.$$.fragment,I),qt=n(I),Z=d(I,"DIV",{class:!0});var z=U(Z);m(Ae.$$.fragment,z),zt=n(z),Ja=d(z,"P",{"data-svelte-h":!0}),b(Ja)!=="svelte-161avre"&&(Ja.textContent=Ps),Lt=n(z),m(se.$$.fragment,z),Ot=Gn(z,`
> [!TIP]
> Raises the following error:
>
>     - [\`ValueError\`](https://docs.python.org/3/library/exceptions.html#ValueError)
>       when the content of the repo card metadata is not a dictionary.`),z.forEach(t),Pt=n(I),X=d(I,"DIV",{class:!0});var K=U(X);m($e.$$.fragment,K),Kt=n(K),wa=d(K,"P",{"data-svelte-h":!0}),b(wa)!=="svelte-18ags6f"&&(wa.textContent=Ks),es=n(K),Ta=d(K,"P",{"data-svelte-h":!0}),b(Ta)!=="svelte-1lmhx0i"&&(Ta.textContent=en),K.forEach(t),as=n(I),V=d(I,"DIV",{class:!0});var ee=U(V);m(Ie.$$.fragment,ee),ts=n(ee),va=d(ee,"P",{"data-svelte-h":!0}),b(va)!=="svelte-b3pfo4"&&(va.textContent=an),ss=n(ee),m(ne.$$.fragment,ee),ee.forEach(t),ns=n(I),le=d(I,"DIV",{class:!0});var ba=U(le);m(De.$$.fragment,ba),ls=n(ba),Aa=d(ba,"P",{"data-svelte-h":!0}),b(Aa)!=="svelte-13tv3j4"&&(Aa.textContent=tn),ba.forEach(t),os=n(I),H=d(I,"DIV",{class:!0});var ae=U(H);m(ke.$$.fragment,ae),rs=n(ae),$a=d(ae,"P",{"data-svelte-h":!0}),b($a)!=="svelte-9cwft2"&&($a.textContent=sn),is=n(ae),m(oe.$$.fragment,ae),ae.forEach(t),cs=n(I),q=d(I,"DIV",{class:!0});var te=U(q);m(Ee.$$.fragment,te),ps=n(te),Ia=d(te,"P",{"data-svelte-h":!0}),b(Ia)!=="svelte-jir5vt"&&(Ia.innerHTML=nn),ds=n(te),Re=d(te,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),b(Re)!=="svelte-6v074g"&&(Re.innerHTML=ln),te.forEach(t),I.forEach(t),pt=n(e),m(Ne.$$.fragment,e),dt=n(e),Ze=d(e,"P",{"data-svelte-h":!0}),b(Ze)!=="svelte-6nc3t9"&&(Ze.innerHTML=on),gt=n(e),T=d(e,"DIV",{class:!0});var A=U(T);m(We.$$.fragment,A),gs=n(A),Da=d(A,"P",{"data-svelte-h":!0}),b(Da)!=="svelte-11gq3a9"&&(Da.textContent=rn),ms=n(A),ka=d(A,"P",{"data-svelte-h":!0}),b(ka)!=="svelte-cedggb"&&(ka.innerHTML=cn),hs=n(A),Ea=d(A,"P",{"data-svelte-h":!0}),b(Ea)!=="svelte-3994xf"&&(Ea.innerHTML=pn),us=n(A),re=d(A,"DIV",{class:!0});var Ca=U(re);m(Ge.$$.fragment,Ca),Ms=n(Ca),Ra=d(Ca,"P",{"data-svelte-h":!0}),b(Ra)!=="svelte-1vt5g5k"&&(Ra.textContent=dn),Ca.forEach(t),fs=n(A),ie=d(A,"DIV",{class:!0});var xa=U(ie);m(Ye.$$.fragment,xa),ys=n(xa),Na=d(xa,"P",{"data-svelte-h":!0}),b(Na)!=="svelte-1tl2a7n"&&(Na.textContent=gn),xa.forEach(t),_s=n(A),ce=d(A,"DIV",{class:!0});var Ua=U(ce);m(Se.$$.fragment,Ua),js=n(Ua),Za=d(Ua,"P",{"data-svelte-h":!0}),b(Za)!=="svelte-1s2hgf6"&&(Za.textContent=mn),Ua.forEach(t),bs=n(A),pe=d(A,"DIV",{class:!0});var Qt=U(pe);m(Be.$$.fragment,Qt),Cs=n(Qt),Wa=d(Qt,"P",{"data-svelte-h":!0}),b(Wa)!=="svelte-1wsmx9v"&&(Wa.textContent=hn),Qt.forEach(t),A.forEach(t),mt=n(e),m(Qe.$$.fragment,e),ht=n(e),m(Fe.$$.fragment,e),ut=n(e),L=d(e,"DIV",{class:!0});var Ft=U(L);m(Xe.$$.fragment,Ft),xs=n(Ft),R=d(Ft,"DIV",{class:!0});var je=U(R);m(Ve.$$.fragment,je),Us=n(je),Ga=d(je,"P",{"data-svelte-h":!0}),b(Ga)!=="svelte-1eear21"&&(Ga.innerHTML=un),Js=n(je),Ya=d(je,"P",{"data-svelte-h":!0}),b(Ya)!=="svelte-1lmhx0i"&&(Ya.textContent=Mn),ws=n(je),m(de.$$.fragment,je),je.forEach(t),Ft.forEach(t),Mt=n(e),m(He.$$.fragment,e),ft=n(e),W=d(e,"DIV",{class:!0});var at=U(W);m(qe.$$.fragment,at),Ts=n(at),Sa=d(at,"P",{"data-svelte-h":!0}),b(Sa)!=="svelte-rhbg82"&&(Sa.textContent=fn),vs=n(at),m(ge.$$.fragment,at),at.forEach(t),yt=n(e),m(ze.$$.fragment,e),_t=n(e),Le=d(e,"P",{"data-svelte-h":!0}),b(Le)!=="svelte-1vz0b8q"&&(Le.textContent=yn),jt=n(e),m(Oe.$$.fragment,e),bt=n(e),O=d(e,"DIV",{class:!0});var Xt=U(O);m(Pe.$$.fragment,Xt),As=n(Xt),N=d(Xt,"DIV",{class:!0});var be=U(N);m(Ke.$$.fragment,be),$s=n(be),Ba=d(be,"P",{"data-svelte-h":!0}),b(Ba)!=="svelte-1stjz9i"&&(Ba.innerHTML=_n),Is=n(be),Qa=d(be,"P",{"data-svelte-h":!0}),b(Qa)!=="svelte-1lmhx0i"&&(Qa.textContent=jn),Ds=n(be),m(me.$$.fragment,be),be.forEach(t),Xt.forEach(t),Ct=n(e),m(ea.$$.fragment,e),xt=n(e),P=d(e,"DIV",{class:!0});var Vt=U(P);m(aa.$$.fragment,Vt),ks=n(Vt),Fa=d(Vt,"P",{"data-svelte-h":!0}),b(Fa)!=="svelte-q1o4e7"&&(Fa.textContent=bn),Vt.forEach(t),Ut=n(e),m(ta.$$.fragment,e),Jt=n(e),m(sa.$$.fragment,e),wt=n(e),na=d(e,"DIV",{class:!0});var Dn=U(na);m(la.$$.fragment,Dn),Dn.forEach(t),Tt=n(e),m(oa.$$.fragment,e),vt=n(e),D=d(e,"DIV",{class:!0});var Ce=U(D);m(ra.$$.fragment,Ce),Es=n(Ce),Xa=d(Ce,"P",{"data-svelte-h":!0}),b(Xa)!=="svelte-1j9hyb1"&&(Xa.textContent=Cn),Rs=n(Ce),Va=d(Ce,"P",{"data-svelte-h":!0}),b(Va)!=="svelte-sg51el"&&(Va.innerHTML=xn),Ns=n(Ce),m(he.$$.fragment,Ce),Ce.forEach(t),At=n(e),m(ia.$$.fragment,e),$t=n(e),m(ca.$$.fragment,e),It=n(e),k=d(e,"DIV",{class:!0});var xe=U(k);m(pa.$$.fragment,xe),Zs=n(xe),Ha=d(xe,"P",{"data-svelte-h":!0}),b(Ha)!=="svelte-1tnxdck"&&(Ha.textContent=Un),Ws=n(xe),qa=d(xe,"P",{"data-svelte-h":!0}),b(qa)!=="svelte-1en2oav"&&(qa.innerHTML=Jn),Gs=n(xe),ue=d(xe,"DIV",{class:!0});var Ht=U(ue);m(da.$$.fragment,Ht),Ys=n(Ht),za=d(Ht,"P",{"data-svelte-h":!0}),b(za)!=="svelte-6pr4vq"&&(za.innerHTML=wn),Ht.forEach(t),xe.forEach(t),Dt=n(e),m(ga.$$.fragment,e),kt=n(e),E=d(e,"DIV",{class:!0});var Ue=U(E);m(ma.$$.fragment,Ue),Ss=n(Ue),La=d(Ue,"P",{"data-svelte-h":!0}),b(La)!=="svelte-18o9q21"&&(La.innerHTML=Tn),Bs=n(Ue),Oa=d(Ue,"P",{"data-svelte-h":!0}),b(Oa)!=="svelte-1nu88lf"&&(Oa.innerHTML=vn),Qs=n(Ue),m(Me.$$.fragment,Ue),Ue.forEach(t),Et=n(e),m(ha.$$.fragment,e),Rt=n(e),G=d(e,"DIV",{class:!0});var tt=U(G);m(ua.$$.fragment,tt),Fs=n(tt),Pa=d(tt,"P",{"data-svelte-h":!0}),b(Pa)!=="svelte-oll614"&&(Pa.innerHTML=An),Xs=n(tt),m(fe.$$.fragment,tt),tt.forEach(t),Nt=n(e),m(Ma.$$.fragment,e),Zt=n(e),Y=d(e,"DIV",{class:!0});var st=U(Y);m(fa.$$.fragment,st),Vs=n(st),Ka=d(st,"P",{"data-svelte-h":!0}),b(Ka)!=="svelte-67svdo"&&(Ka.textContent=$n),Hs=n(st),m(ye.$$.fragment,st),st.forEach(t),Wt=n(e),m(ya.$$.fragment,e),Gt=n(e),S=d(e,"DIV",{class:!0});var nt=U(S);m(_a.$$.fragment,nt),qs=n(nt),et=d(nt,"P",{"data-svelte-h":!0}),b(et)!=="svelte-lhiee6"&&(et.innerHTML=In),zs=n(nt),m(_e.$$.fragment,nt),nt.forEach(t),Yt=n(e),m(ja.$$.fragment,e),St=n(e),lt=d(e,"P",{}),U(lt).forEach(t),this.h()},h(){x(r,"name","hf:doc:metadata"),x(r,"content",el),x(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Re,"class","tip"),x(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(na,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,l){o(document.head,r),c(e,C,l),c(e,_,l),c(e,i,l),h(y,e,l),c(e,a,l),h(j,e,l),c(e,ot,l),c(e,Je,l),c(e,rt,l),h(we,e,l),c(e,it,l),c(e,Te,l),c(e,ct,l),c(e,v,l),h(ve,v,null),o(v,qt),o(v,Z),h(Ae,Z,null),o(Z,zt),o(Z,Ja),o(Z,Lt),h(se,Z,null),o(Z,Ot),o(v,Pt),o(v,X),h($e,X,null),o(X,Kt),o(X,wa),o(X,es),o(X,Ta),o(v,as),o(v,V),h(Ie,V,null),o(V,ts),o(V,va),o(V,ss),h(ne,V,null),o(v,ns),o(v,le),h(De,le,null),o(le,ls),o(le,Aa),o(v,os),o(v,H),h(ke,H,null),o(H,rs),o(H,$a),o(H,is),h(oe,H,null),o(v,cs),o(v,q),h(Ee,q,null),o(q,ps),o(q,Ia),o(q,ds),o(q,Re),c(e,pt,l),h(Ne,e,l),c(e,dt,l),c(e,Ze,l),c(e,gt,l),c(e,T,l),h(We,T,null),o(T,gs),o(T,Da),o(T,ms),o(T,ka),o(T,hs),o(T,Ea),o(T,us),o(T,re),h(Ge,re,null),o(re,Ms),o(re,Ra),o(T,fs),o(T,ie),h(Ye,ie,null),o(ie,ys),o(ie,Na),o(T,_s),o(T,ce),h(Se,ce,null),o(ce,js),o(ce,Za),o(T,bs),o(T,pe),h(Be,pe,null),o(pe,Cs),o(pe,Wa),c(e,mt,l),h(Qe,e,l),c(e,ht,l),h(Fe,e,l),c(e,ut,l),c(e,L,l),h(Xe,L,null),o(L,xs),o(L,R),h(Ve,R,null),o(R,Us),o(R,Ga),o(R,Js),o(R,Ya),o(R,ws),h(de,R,null),c(e,Mt,l),h(He,e,l),c(e,ft,l),c(e,W,l),h(qe,W,null),o(W,Ts),o(W,Sa),o(W,vs),h(ge,W,null),c(e,yt,l),h(ze,e,l),c(e,_t,l),c(e,Le,l),c(e,jt,l),h(Oe,e,l),c(e,bt,l),c(e,O,l),h(Pe,O,null),o(O,As),o(O,N),h(Ke,N,null),o(N,$s),o(N,Ba),o(N,Is),o(N,Qa),o(N,Ds),h(me,N,null),c(e,Ct,l),h(ea,e,l),c(e,xt,l),c(e,P,l),h(aa,P,null),o(P,ks),o(P,Fa),c(e,Ut,l),h(ta,e,l),c(e,Jt,l),h(sa,e,l),c(e,wt,l),c(e,na,l),h(la,na,null),c(e,Tt,l),h(oa,e,l),c(e,vt,l),c(e,D,l),h(ra,D,null),o(D,Es),o(D,Xa),o(D,Rs),o(D,Va),o(D,Ns),h(he,D,null),c(e,At,l),h(ia,e,l),c(e,$t,l),h(ca,e,l),c(e,It,l),c(e,k,l),h(pa,k,null),o(k,Zs),o(k,Ha),o(k,Ws),o(k,qa),o(k,Gs),o(k,ue),h(da,ue,null),o(ue,Ys),o(ue,za),c(e,Dt,l),h(ga,e,l),c(e,kt,l),c(e,E,l),h(ma,E,null),o(E,Ss),o(E,La),o(E,Bs),o(E,Oa),o(E,Qs),h(Me,E,null),c(e,Et,l),h(ha,e,l),c(e,Rt,l),c(e,G,l),h(ua,G,null),o(G,Fs),o(G,Pa),o(G,Xs),h(fe,G,null),c(e,Nt,l),h(Ma,e,l),c(e,Zt,l),c(e,Y,l),h(fa,Y,null),o(Y,Vs),o(Y,Ka),o(Y,Hs),h(ye,Y,null),c(e,Wt,l),h(ya,e,l),c(e,Gt,l),c(e,S,l),h(_a,S,null),o(S,qs),o(S,et),o(S,zs),h(_e,S,null),c(e,Yt,l),h(ja,e,l),c(e,St,l),c(e,lt,l),Bt=!0},p(e,[l]){const I={};l&2&&(I.$$scope={dirty:l,ctx:e}),se.$set(I);const z={};l&2&&(z.$$scope={dirty:l,ctx:e}),ne.$set(z);const K={};l&2&&(K.$$scope={dirty:l,ctx:e}),oe.$set(K);const ee={};l&2&&(ee.$$scope={dirty:l,ctx:e}),de.$set(ee);const ba={};l&2&&(ba.$$scope={dirty:l,ctx:e}),ge.$set(ba);const ae={};l&2&&(ae.$$scope={dirty:l,ctx:e}),me.$set(ae);const te={};l&2&&(te.$$scope={dirty:l,ctx:e}),he.$set(te);const A={};l&2&&(A.$$scope={dirty:l,ctx:e}),Me.$set(A);const Ca={};l&2&&(Ca.$$scope={dirty:l,ctx:e}),fe.$set(Ca);const xa={};l&2&&(xa.$$scope={dirty:l,ctx:e}),ye.$set(xa);const Ua={};l&2&&(Ua.$$scope={dirty:l,ctx:e}),_e.$set(Ua)},i(e){Bt||(u(y.$$.fragment,e),u(j.$$.fragment,e),u(we.$$.fragment,e),u(ve.$$.fragment,e),u(Ae.$$.fragment,e),u(se.$$.fragment,e),u($e.$$.fragment,e),u(Ie.$$.fragment,e),u(ne.$$.fragment,e),u(De.$$.fragment,e),u(ke.$$.fragment,e),u(oe.$$.fragment,e),u(Ee.$$.fragment,e),u(Ne.$$.fragment,e),u(We.$$.fragment,e),u(Ge.$$.fragment,e),u(Ye.$$.fragment,e),u(Se.$$.fragment,e),u(Be.$$.fragment,e),u(Qe.$$.fragment,e),u(Fe.$$.fragment,e),u(Xe.$$.fragment,e),u(Ve.$$.fragment,e),u(de.$$.fragment,e),u(He.$$.fragment,e),u(qe.$$.fragment,e),u(ge.$$.fragment,e),u(ze.$$.fragment,e),u(Oe.$$.fragment,e),u(Pe.$$.fragment,e),u(Ke.$$.fragment,e),u(me.$$.fragment,e),u(ea.$$.fragment,e),u(aa.$$.fragment,e),u(ta.$$.fragment,e),u(sa.$$.fragment,e),u(la.$$.fragment,e),u(oa.$$.fragment,e),u(ra.$$.fragment,e),u(he.$$.fragment,e),u(ia.$$.fragment,e),u(ca.$$.fragment,e),u(pa.$$.fragment,e),u(da.$$.fragment,e),u(ga.$$.fragment,e),u(ma.$$.fragment,e),u(Me.$$.fragment,e),u(ha.$$.fragment,e),u(ua.$$.fragment,e),u(fe.$$.fragment,e),u(Ma.$$.fragment,e),u(fa.$$.fragment,e),u(ye.$$.fragment,e),u(ya.$$.fragment,e),u(_a.$$.fragment,e),u(_e.$$.fragment,e),u(ja.$$.fragment,e),Bt=!0)},o(e){M(y.$$.fragment,e),M(j.$$.fragment,e),M(we.$$.fragment,e),M(ve.$$.fragment,e),M(Ae.$$.fragment,e),M(se.$$.fragment,e),M($e.$$.fragment,e),M(Ie.$$.fragment,e),M(ne.$$.fragment,e),M(De.$$.fragment,e),M(ke.$$.fragment,e),M(oe.$$.fragment,e),M(Ee.$$.fragment,e),M(Ne.$$.fragment,e),M(We.$$.fragment,e),M(Ge.$$.fragment,e),M(Ye.$$.fragment,e),M(Se.$$.fragment,e),M(Be.$$.fragment,e),M(Qe.$$.fragment,e),M(Fe.$$.fragment,e),M(Xe.$$.fragment,e),M(Ve.$$.fragment,e),M(de.$$.fragment,e),M(He.$$.fragment,e),M(qe.$$.fragment,e),M(ge.$$.fragment,e),M(ze.$$.fragment,e),M(Oe.$$.fragment,e),M(Pe.$$.fragment,e),M(Ke.$$.fragment,e),M(me.$$.fragment,e),M(ea.$$.fragment,e),M(aa.$$.fragment,e),M(ta.$$.fragment,e),M(sa.$$.fragment,e),M(la.$$.fragment,e),M(oa.$$.fragment,e),M(ra.$$.fragment,e),M(he.$$.fragment,e),M(ia.$$.fragment,e),M(ca.$$.fragment,e),M(pa.$$.fragment,e),M(da.$$.fragment,e),M(ga.$$.fragment,e),M(ma.$$.fragment,e),M(Me.$$.fragment,e),M(ha.$$.fragment,e),M(ua.$$.fragment,e),M(fe.$$.fragment,e),M(Ma.$$.fragment,e),M(fa.$$.fragment,e),M(ye.$$.fragment,e),M(ya.$$.fragment,e),M(_a.$$.fragment,e),M(_e.$$.fragment,e),M(ja.$$.fragment,e),Bt=!1},d(e){e&&(t(C),t(_),t(i),t(a),t(ot),t(Je),t(rt),t(it),t(Te),t(ct),t(v),t(pt),t(dt),t(Ze),t(gt),t(T),t(mt),t(ht),t(ut),t(L),t(Mt),t(ft),t(W),t(yt),t(_t),t(Le),t(jt),t(bt),t(O),t(Ct),t(xt),t(P),t(Ut),t(Jt),t(wt),t(na),t(Tt),t(vt),t(D),t(At),t($t),t(It),t(k),t(Dt),t(kt),t(E),t(Et),t(Rt),t(G),t(Nt),t(Zt),t(Y),t(Wt),t(Gt),t(S),t(Yt),t(St),t(lt)),t(r),f(y,e),f(j,e),f(we,e),f(ve),f(Ae),f(se),f($e),f(Ie),f(ne),f(De),f(ke),f(oe),f(Ee),f(Ne,e),f(We),f(Ge),f(Ye),f(Se),f(Be),f(Qe,e),f(Fe,e),f(Xe),f(Ve),f(de),f(He,e),f(qe),f(ge),f(ze,e),f(Oe,e),f(Pe),f(Ke),f(me),f(ea,e),f(aa),f(ta,e),f(sa,e),f(la),f(oa,e),f(ra),f(he),f(ia,e),f(ca,e),f(pa),f(da),f(ga,e),f(ma),f(Me),f(ha,e),f(ua),f(fe),f(Ma,e),f(fa),f(ye),f(ya,e),f(_a),f(_e),f(ja,e)}}}const el='{"title":"Repository Cards","local":"repository-cards","sections":[{"title":"Repo Card","local":"huggingface_hub.RepoCard","sections":[],"depth":2},{"title":"Card Data","local":"huggingface_hub.CardData","sections":[],"depth":2},{"title":"Model Cards","local":"model-cards","sections":[{"title":"ModelCard","local":"huggingface_hub.ModelCard","sections":[],"depth":3},{"title":"ModelCardData","local":"huggingface_hub.ModelCardData","sections":[],"depth":3}],"depth":2},{"title":"Dataset Cards","local":"dataset-cards","sections":[{"title":"DatasetCard","local":"huggingface_hub.DatasetCard","sections":[],"depth":3},{"title":"DatasetCardData","local":"huggingface_hub.DatasetCardData","sections":[],"depth":3}],"depth":2},{"title":"Space Cards","local":"space-cards","sections":[{"title":"SpaceCard","local":"huggingface_hub.SpaceCard","sections":[],"depth":3},{"title":"SpaceCardData","local":"huggingface_hub.SpaceCardData","sections":[],"depth":3}],"depth":2},{"title":"Utilities","local":"utilities","sections":[{"title":"EvalResult","local":"huggingface_hub.EvalResult","sections":[],"depth":3},{"title":"model_index_to_eval_results","local":"huggingface_hub.repocard_data.model_index_to_eval_results","sections":[],"depth":3},{"title":"eval_results_to_model_index","local":"huggingface_hub.repocard_data.eval_results_to_model_index","sections":[],"depth":3},{"title":"metadata_eval_result","local":"huggingface_hub.metadata_eval_result","sections":[],"depth":3},{"title":"metadata_update","local":"huggingface_hub.metadata_update","sections":[],"depth":3}],"depth":2}],"depth":1}';function al(w){return En(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class cl extends Rn{constructor(r){super(),Nn(this,r,al,Kn,kn,{})}}export{cl as component};
