Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linked Indic Voices #92

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" },
];
Loading