Prompt
{id}
Output
diff --git a/website/src/pages/evaluate/rank_assistant_replies.tsx b/website/src/pages/evaluate/rank_assistant_replies.tsx
index 3d2973a9..08381adf 100644
--- a/website/src/pages/evaluate/rank_assistant_replies.tsx
+++ b/website/src/pages/evaluate/rank_assistant_replies.tsx
@@ -1,4 +1,4 @@
-import { Button, Flex } from "@chakra-ui/react";
+import { Button, Container, Flex, useColorModeValue } from "@chakra-ui/react";
import Head from "next/head";
import { useState } from "react";
import useSWRImmutable from "swr/immutable";
@@ -20,7 +20,7 @@ const RankAssistantReplies = () => {
* The best reply will have index 0, and the worst is the last.
*/
const [ranking, setRanking] = useState
([]);
-
+ const bg = useColorModeValue("gray.100", "gray.800")
const { isLoading } = useSWRImmutable("/api/new_task/rank_assistant_replies", fetcher, {
onSuccess: (data) => {
setTasks([data]);
@@ -49,7 +49,7 @@ const RankAssistantReplies = () => {
}
if (tasks.length == 0) {
- return Loading...
;
+ return No Tasks Found...;
}
const replies = tasks[0].task.replies as string[];
@@ -59,16 +59,16 @@ const RankAssistantReplies = () => {
Rank Assistant Replies
-
-
+
+
Instructions
Given the following replies, sort them from best to worst, best being first, worst being last.
-
+
-
+
@@ -77,8 +77,8 @@ const RankAssistantReplies = () => {
Submit
-
-
+
+
>
);
};
diff --git a/website/src/pages/evaluate/rank_user_replies.tsx b/website/src/pages/evaluate/rank_user_replies.tsx
index f56d8a43..7c0cd9b8 100644
--- a/website/src/pages/evaluate/rank_user_replies.tsx
+++ b/website/src/pages/evaluate/rank_user_replies.tsx
@@ -9,7 +9,7 @@ import poster from "src/lib/poster";
import { LoadingScreen } from "src/components/Loading/LoadingScreen";
import { Sortable } from "src/components/Sortable/Sortable";
import { TaskInfo } from "src/components/TaskInfo/TaskInfo";
-import { Flex } from "@chakra-ui/react";
+import { Container, Flex, useColorModeValue } from "@chakra-ui/react";
import { SkipButton } from "src/components/Buttons/Skip";
import { SubmitButton } from "src/components/Buttons/Submit";
@@ -20,7 +20,7 @@ const RankUserReplies = () => {
* The best reply will have index 0, and the worst is the last.
*/
const [ranking, setRanking] = useState([]);
-
+ const bg = useColorModeValue("gray.100", "gray.800");
const { isLoading } = useSWRImmutable("/api/new_task/rank_user_replies", fetcher, {
onSuccess: (data) => {
setTasks([data]);
@@ -49,7 +49,7 @@ const RankUserReplies = () => {
}
if (tasks.length == 0) {
- return Loading...
;
+ return Loading...;
}
const replies = tasks[0].task.replies as string[];
@@ -59,14 +59,14 @@ const RankUserReplies = () => {
Rank User Replies
-
-
+
+
Instructions
Given the following replies, sort them from best to worst, best being first, worst being last.
-
+
@@ -78,7 +78,7 @@ const RankUserReplies = () => {
-
+
>
);
};