Skip to content

Commit

Permalink
add: temporally import AI model images from
Browse files Browse the repository at this point in the history
  • Loading branch information
lizable committed Dec 23, 2024
1 parent 23bc698 commit 362a489
Show file tree
Hide file tree
Showing 22 changed files with 62 additions and 50 deletions.
112 changes: 62 additions & 50 deletions react/src/pages/ModelStoreListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const ModelStoreListPage: React.FC = () => {
</Flex>
<List
className={styles.cardList}
grid={{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 4, xxl: 5 }}
grid={{ gutter: 16, column: 2 }}
dataSource={model_cards?.edges
?.map((edge) => edge?.node)
.filter((info) => {
Expand Down Expand Up @@ -262,57 +262,69 @@ const ModelStoreListPage: React.FC = () => {
style={{
height: '100%',
}}
size="small"
>
<Flex direction="row" wrap="wrap" gap={'xs'}>
{item?.description && (
<Typography.Paragraph
ellipsis={{ rows: 3, expandable: false }}
>
<TextHighlighter keyword={search}>
{item?.description}
</TextHighlighter>
</Typography.Paragraph>
)}
{item?.category && (
<Tag bordered={false}>
<TextHighlighter keyword={search}>
{item?.category}
</TextHighlighter>
</Tag>
)}
{item?.task && (
<Tag bordered={false} color="success">
<TextHighlighter keyword={search}>
{item?.task}
</TextHighlighter>
</Tag>
)}
{item?.label &&
_.map(item?.label, (label) => (
<Tag key={label} bordered={false} color="blue">
children={
<Flex direction="column" align="stretch" gap="xs">
<Flex direction="row" align="start" gap="xs">
<img
alt="example"
src={`/resources/images/model-player/${_.replace(item?.name as string, ' ', '-')}.jpeg`}
style={{
marginRight: token.marginXS,
width: 200,
height: 200,
}}
/>
<Typography.Paragraph
ellipsis={{ rows: 3, expandable: false }}
style={{ flex: 1 }}
>
<TextHighlighter keyword={search}>
{label}
{item?.description}
</TextHighlighter>
</Tag>
))}
{item?.error_msg && (
<Alert
style={{ width: '100%' }}
message={
<Typography.Paragraph
ellipsis={{ rows: 6 }}
style={{ marginBottom: 0 }}
>
{item.error_msg}
</Typography.Paragraph>
}
type="error"
showIcon
/>
)}
</Flex>
</Card>
</Typography.Paragraph>
</Flex>
<Flex direction="row" wrap="wrap" gap={'xs'}>
{item?.category && (
<Tag bordered={false}>
<TextHighlighter keyword={search}>
{item?.category}
</TextHighlighter>
</Tag>
)}
{item?.task && (
<Tag bordered={false} color="success">
<TextHighlighter keyword={search}>
{item?.task}
</TextHighlighter>
</Tag>
)}
{item?.label &&
_.map(item?.label, (label) => (
<Tag key={label} bordered={false} color="blue">
<TextHighlighter keyword={search}>
{label}
</TextHighlighter>
</Tag>
))}
{item?.error_msg && (
<Alert
style={{ width: '100%' }}
message={
<Typography.Paragraph
ellipsis={{ rows: 6 }}
style={{ marginBottom: 0 }}
>
{item.error_msg}
</Typography.Paragraph>
}
type="error"
showIcon
/>
)}
</Flex>
</Flex>
}
></Card>
</List.Item>
)}
/>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/model-player/flan-t5-xxl.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/model-player/sdxl-turbo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/model-player/talkativot-UI.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 362a489

Please sign in to comment.