Skip to content

Commit

Permalink
Linked Indic Voices
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Oct 27, 2024
1 parent a13b0f1 commit 7b1498e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 19 deletions.
47 changes: 28 additions & 19 deletions frontend/src/app/datasets/[title]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,32 @@ export async function generateStaticParams() {
}

export default function Dataset({ params }: { params: { title: string } }) {
return (
<>
{params.title.includes("rasa") ? (
<iframe
src={"https://rasa.ai4bharat.org/"}
title={`${params.title}`}
width="100%"
height={2000}
/>
) : (
<iframe
src={`https://datasets.ai4bharat.org/${params.title}`}
title={`${params.title}`}
width="100%"
height={2000}
/>
)}
</>
);
if (params.title.includes("rasa")) {
return (
<iframe
src={"https://rasa.ai4bharat.org/"}
title={`${params.title}`}
width="100%"
height={2000}
/>
);
} else if (params.title.includes("indicvoices")) {
return (
<iframe
src={"https://indicvoices.ai4bharat.org/"}
title={`${params.title}`}
width="100%"
height={2000}
/>
);
} else {
return (
<iframe
src={`https://datasets.ai4bharat.org/${params.title}`}
title={`${params.title}`}
width="100%"
height={2000}
/>
);
}
}
1 change: 1 addition & 0 deletions frontend/src/app/datasets/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export const datasets = [
{ title: "rasa" },
{ title: "bpcc" },
{ title: "IndicMT-Eval" },
{ title: "indicvoices" },
];

0 comments on commit 7b1498e

Please sign in to comment.