Skip to content

Commit

Permalink
Removed Language Experts Section and Added model conditional UI rende…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
Shanks0465 committed Aug 30, 2024
1 parent b095d2a commit 7134384
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 33 deletions.
76 changes: 49 additions & 27 deletions frontend/components/Models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,20 @@ export default function ModelView({
</Text>
</Heading>
<HStack>
<Box
borderRadius={15}
p={1}
borderWidth={3}
borderColor={"a4borange"}
>
<Text textColor={"a4borange"}>
Conference : {model.conference}
</Text>
</Box>
{model.conference ? (
<Box
borderRadius={15}
p={1}
borderWidth={3}
borderColor={"a4borange"}
>
<Text textColor={"a4borange"}>
Conference : {model.conference}
</Text>
</Box>
) : (
<></>
)}
{model.hfData.downloads ? (
<Box
borderRadius={15}
Expand All @@ -162,22 +166,40 @@ export default function ModelView({
</HStack>
<Text color={"gray.500"}>{model.description}</Text>
<HStack>
<Box borderRadius={50} p={1} borderWidth={3} borderColor={"black"}>
<Link target="_blank" href={model.github_link}>
<HStack>
<FaGithub size={25} />
<Text>Github</Text>
</HStack>
</Link>
</Box>
<Box borderRadius={50} p={1} borderWidth={3} borderColor={"black"}>
<Link target="_blank" href={model.paper_link}>
<HStack>
<FaPaperclip size={25} />
<Text>Paper</Text>
</HStack>
</Link>
</Box>
{model.github_link ? (
<Box
borderRadius={50}
p={1}
borderWidth={3}
borderColor={"black"}
>
<Link target="_blank" href={model.github_link}>
<HStack>
<FaGithub size={25} />
<Text>Github</Text>
</HStack>
</Link>
</Box>
) : (
<></>
)}
{model.paper_link ? (
<Box
borderRadius={50}
p={1}
borderWidth={3}
borderColor={"black"}
>
<Link target="_blank" href={model.paper_link}>
<HStack>
<FaPaperclip size={25} />
<Text>Paper</Text>
</HStack>
</Link>
</Box>
) : (
<></>
)}
</HStack>
</Stack>
<Flex
Expand All @@ -187,7 +209,7 @@ export default function ModelView({
position={"relative"}
w={"full"}
>
{renderTryOut({ area: area, model: model })}
{modelLoading ? <></> : renderTryOut({ area: area, model: model })}
</Flex>
</Stack>
</Container>
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/app/people/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ export default function People() {
members={members}
team={"5"}
/>
<PeopleSection
heading="Meet Our Language Experts at AI4Bharat"
description="Our language experts at AI4Bharat, supported by Bhashini's generous funding, are the architects of transformative linguistic solutions. With skilled translators and transcription specialists, they harness the power of language to break barriers and advance AI."
members={members}
team={"6"}
/>
</Stack>
);
}

0 comments on commit 7134384

Please sign in to comment.