Hub documentation

模型卡组件

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

模型卡组件

模型卡片组件是特殊的元素,您可以直接将其注入到模型卡片的 Markdown 中,以在模型页面中展示功能强大的自定义组件。这些组件由我们开发,欢迎在此讨论中分享有关新模型卡片组件的想法。

Gallery 组件

<Gallery /> 组件可用于模型卡片中,以展示您生成的图像和视频。

如何使用?

  1. 更新您的模型卡 widget 元数据,以添加您想要展示的内容。
widget:
  - text: a girl wandering through the forest
    output:
      url: images/6CD03C101B7F6545EB60E9F48D60B8B3C2D31D42D20F8B7B9B149DD0C646C0C2.jpeg
  - text: a tiny witch child
    output:
      url: images/7B482E1FDB39DA5A102B9CD041F4A2902A8395B3835105C736C5AD9C1D905157.jpeg
  - text: an artist leaning over to draw something
    output:
      url: images/7CCEA11F1B74C8D8992C47C1C5DEA9BD6F75940B380E9E6EC7D01D85863AF718.jpeg
  1. 将 <Gallery /> 组件添加到您的卡片中。<Gallery /> 组件将使用 widget 元数据来显示媒体及其关联的提示词。

<Gallery />

## Model description

A very classic hand drawn cartoon style.

在此处查看结果 here。

提示:通过 GUI 编辑器支持 Card Components 的功能即将推出……

Update on GitHub