Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added stability, and added sponsors to inference interface (#2383)
- Loading branch information
Showing
5 changed files
with
76 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Grid, Heading } from "@chakra-ui/react"; | ||
import { TeamMember } from "src/components/TeamMember"; | ||
|
||
import data from "../../data/team.json"; | ||
|
||
const SponsorGroup = ({ heading, members }) => { | ||
const { people } = data; | ||
return ( | ||
<> | ||
<Heading size="sm" mt={3} mb={1}> | ||
{heading} | ||
</Heading> | ||
<Grid gap="6" gridTemplateColumns="repeat(auto-fit, minmax(300px, 1fr))"> | ||
{members.map((id) => { | ||
const info = people[id] ?? {}; | ||
return <TeamMember {...info} key={id} />; | ||
})} | ||
</Grid> | ||
</> | ||
); | ||
}; | ||
|
||
export const InferencePoweredBy = () => { | ||
return ( | ||
<> | ||
<SponsorGroup heading="Inference powered by" members={["hf", "stability"]} /> | ||
<SponsorGroup heading="Model training supported by" members={["redmond", "wandb"]} /> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Avatar, Badge, Box, Flex, Text, useColorModeValue } from "@chakra-ui/react"; | ||
import { Github } from "lucide-react"; | ||
import Link from "next/link"; | ||
|
||
export interface TeamMemberProps { | ||
name: string; | ||
imageURL: string; | ||
githubURL?: string; | ||
title: string; | ||
} | ||
export function TeamMember({ name, imageURL, githubURL, title }: TeamMemberProps) { | ||
const contributorBackgroundColor = useColorModeValue("gray.200", "gray.700"); | ||
return ( | ||
<Flex gap="1" bg={contributorBackgroundColor} borderRadius="md" p="2"> | ||
<Avatar src={imageURL} loading="lazy" name={name} /> | ||
<Box ml="3"> | ||
<Text fontWeight="bold"> | ||
{name} | ||
{githubURL && ( | ||
<Badge ml="2" mb="0.5"> | ||
<Link href={githubURL} target="_default" rel="noreferrer" title="github"> | ||
<Github size={12} /> | ||
</Link> | ||
</Badge> | ||
)} | ||
</Text> | ||
<Text fontSize="sm">{title}</Text> | ||
</Box> | ||
</Flex> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters