Spaces:
Runtime error
Runtime error
Commit
·
6f36760
1
Parent(s):
a3afbd9
cheating
Browse files- results/qwen3.json +0 -0
- src/components/viewer-tab.tsx +10 -7
results/qwen3.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
src/components/viewer-tab.tsx
CHANGED
|
@@ -3,9 +3,9 @@
|
|
| 3 |
import * as hub from "@huggingface/hub";
|
| 4 |
import type { RepoDesignation } from "@huggingface/hub";
|
| 5 |
|
| 6 |
-
import mockResults from "../../qwen3
|
| 7 |
-
|
| 8 |
-
import { useMemo, useState } from "react";
|
| 9 |
import {
|
| 10 |
Select,
|
| 11 |
SelectContent,
|
|
@@ -16,7 +16,6 @@ import {
|
|
| 16 |
import { Button } from "@/components/ui/button";
|
| 17 |
import { Card } from "@/components/ui/card";
|
| 18 |
import ForceDirectedGraph from "@/components/force-directed-graph";
|
| 19 |
-
import ReasoningTrace from "@/components/reasoning-trace";
|
| 20 |
import RunsList from "@/components/runs-list";
|
| 21 |
|
| 22 |
type Run = {
|
|
@@ -40,7 +39,7 @@ export default function ViewerTab() {
|
|
| 40 |
const fetchDataset = async () => {
|
| 41 |
console.log("Fetching dataset...");
|
| 42 |
console.log(Object.keys(mockResults));
|
| 43 |
-
setRuns(mockResults.runs
|
| 44 |
|
| 45 |
return;
|
| 46 |
setLoading(true);
|
|
@@ -67,6 +66,10 @@ export default function ViewerTab() {
|
|
| 67 |
// setLoading(false);
|
| 68 |
};
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
const handleDatasetChange = (value: string) => {
|
| 71 |
setSelectedDataset(value);
|
| 72 |
setSelectedRun(null);
|
|
@@ -83,7 +86,7 @@ export default function ViewerTab() {
|
|
| 83 |
return (
|
| 84 |
<div className="grid grid-cols-1 md:grid-cols-12 gap-4">
|
| 85 |
<div className="md:col-span-3">
|
| 86 |
-
<div className="mb-4">
|
| 87 |
<Select value={selectedDataset} onValueChange={handleDatasetChange}>
|
| 88 |
<SelectTrigger className="w-full">
|
| 89 |
<SelectValue placeholder="SELECT DATASET" />
|
|
@@ -98,7 +101,7 @@ export default function ViewerTab() {
|
|
| 98 |
</Select>
|
| 99 |
<Button onClick={fetchDataset}>Fetch Dataset</Button>
|
| 100 |
{loading && <p>Loading...</p>}
|
| 101 |
-
</div>
|
| 102 |
|
| 103 |
<div className="bg-card rounded-lg p-3 border">
|
| 104 |
<h3 className="text-sm font-medium mb-2 text-muted-foreground">
|
|
|
|
| 3 |
import * as hub from "@huggingface/hub";
|
| 4 |
import type { RepoDesignation } from "@huggingface/hub";
|
| 5 |
|
| 6 |
+
import mockResults from "../../results/qwen3.json"
|
| 7 |
+
// import mockResults from "../../qwen3-final-results.json"
|
| 8 |
+
import { useMemo, useState, useEffect } from "react";
|
| 9 |
import {
|
| 10 |
Select,
|
| 11 |
SelectContent,
|
|
|
|
| 16 |
import { Button } from "@/components/ui/button";
|
| 17 |
import { Card } from "@/components/ui/card";
|
| 18 |
import ForceDirectedGraph from "@/components/force-directed-graph";
|
|
|
|
| 19 |
import RunsList from "@/components/runs-list";
|
| 20 |
|
| 21 |
type Run = {
|
|
|
|
| 39 |
const fetchDataset = async () => {
|
| 40 |
console.log("Fetching dataset...");
|
| 41 |
console.log(Object.keys(mockResults));
|
| 42 |
+
setRuns(mockResults.runs);
|
| 43 |
|
| 44 |
return;
|
| 45 |
setLoading(true);
|
|
|
|
| 66 |
// setLoading(false);
|
| 67 |
};
|
| 68 |
|
| 69 |
+
useEffect(() => {
|
| 70 |
+
fetchDataset();
|
| 71 |
+
}, []);
|
| 72 |
+
|
| 73 |
const handleDatasetChange = (value: string) => {
|
| 74 |
setSelectedDataset(value);
|
| 75 |
setSelectedRun(null);
|
|
|
|
| 86 |
return (
|
| 87 |
<div className="grid grid-cols-1 md:grid-cols-12 gap-4">
|
| 88 |
<div className="md:col-span-3">
|
| 89 |
+
{/* <div className="mb-4">
|
| 90 |
<Select value={selectedDataset} onValueChange={handleDatasetChange}>
|
| 91 |
<SelectTrigger className="w-full">
|
| 92 |
<SelectValue placeholder="SELECT DATASET" />
|
|
|
|
| 101 |
</Select>
|
| 102 |
<Button onClick={fetchDataset}>Fetch Dataset</Button>
|
| 103 |
{loading && <p>Loading...</p>}
|
| 104 |
+
</div> */}
|
| 105 |
|
| 106 |
<div className="bg-card rounded-lg p-3 border">
|
| 107 |
<h3 className="text-sm font-medium mb-2 text-muted-foreground">
|