Skip to content

Commit

Permalink
Merge pull request #80 from AI4Bharat/v1.0
Browse files Browse the repository at this point in the history
Added Rasa
  • Loading branch information
Shanks0465 authored Sep 16, 2024
2 parents 9456691 + e172928 commit f97fe0f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
23 changes: 17 additions & 6 deletions frontend/src/app/datasets/[title]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,22 @@ export async function generateStaticParams() {

export default function Dataset({ params }: { params: { title: string } }) {
return (
<iframe
src={`https://datasets.ai4bharat.org/${params.title}`}
title={`${params.title}`}
width="100%"
height={2000}
/>
<>
{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}
/>
)}
</>
);
}
1 change: 1 addition & 0 deletions frontend/src/app/datasets/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export const datasets = [
{ title: "dhwani" },
{ title: "Indic-Align" },
{ title: "Indic-Glue" },
{ title: "rasa" },
];

0 comments on commit f97fe0f

Please sign in to comment.