mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-09 11:40:53 +08:00
60 lines
1.5 KiB
TypeScript
60 lines
1.5 KiB
TypeScript
import { useSession } from "next-auth/react";
|
|
|
|
import Head from "next/head";
|
|
import Link from "next/link";
|
|
|
|
import { CallToAction } from "../components/CallToAction";
|
|
import { Faq } from "../components/Faq";
|
|
import { Footer } from "../components/Footer";
|
|
import { Header } from "../components/Header";
|
|
import { Hero } from "../components/Hero";
|
|
|
|
import styles from "../styles/Home.module.css";
|
|
|
|
export default function Home() {
|
|
const { data: session } = useSession();
|
|
|
|
if (!session) {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Open Assistant</title>
|
|
<meta
|
|
name="description"
|
|
content="Conversational AI for everyone. An open source project to create a chat enabled GPT LLM run by LAION and contributors around the world."
|
|
/>
|
|
</Head>
|
|
<Header />
|
|
<main>
|
|
<Hero />
|
|
<CallToAction />
|
|
|
|
<Faq />
|
|
</main>
|
|
<Footer />
|
|
</>
|
|
);
|
|
}
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Open Assistant</title>
|
|
<meta
|
|
name="description"
|
|
content="Conversational AI for everyone. An open source project to create a chat enabled GPT LLM run by LAION and contributors around the world."
|
|
/>
|
|
</Head>
|
|
<Header />
|
|
<main>
|
|
<h2>Open Chat Gpt</h2>
|
|
|
|
<p>You are logged in</p>
|
|
|
|
<Link href="/grading/grade-output">~Rate a prompt and output now~</Link>
|
|
<Link href="/leaderboard/score-leaderboard">~view the score leaderboard~</Link>
|
|
</main>
|
|
<Footer />
|
|
</>
|
|
);
|
|
}
|