Spaces:
Running
Running
File size: 2,645 Bytes
98847a8 0b598b9 a1f1bf8 98847a8 f762ee5 98847a8 ed37070 f762ee5 ed37070 f762ee5 a1f1bf8 f762ee5 ed37070 a1f1bf8 ed37070 98847a8 ed37070 f762ee5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
import { useState } from 'react'
import API from './API'
import DataChart from './components/DataChart'
import LeaderboardTable from './components/LeaderboardTable'
import Examples from './components/Examples'
function App() {
const file = 'voxpopuli_1k_audio'
const [activeTab, setActiveTab] = useState<
'dataChart' | 'leaderboard' | 'imageExamples' | 'audioExamples' | 'videoExamples'
>('dataChart')
return (
<div className="min-h-screen w-11/12 mx-auto">
<div className="card max-w-4xl bg-base-100">
<div className="card-body">
<h2 className="card-title">🥇 Omni Seal Bench Watermarking Leaderboard</h2>
</div>
</div>
<div className="tabs tabs-border">
<input
type="radio"
name="my_tabs_6"
className="tab"
aria-label="Data Chart"
checked={activeTab === 'dataChart'}
onChange={() => setActiveTab('dataChart')}
defaultChecked
/>
<div className="tab-content bg-base-100 border-base-300 p-6">
<DataChart file={file} />
</div>
<input
type="radio"
name="my_tabs_6"
className="tab"
aria-label="Leaderboard Table"
checked={activeTab === 'leaderboard'}
onChange={() => setActiveTab('leaderboard')}
/>
<div className="tab-content bg-base-100 border-base-300 p-6">
<LeaderboardTable file={file} />
</div>
<input
type="radio"
name="my_tabs_6"
className="tab"
aria-label="Image Examples"
checked={activeTab === 'imageExamples'}
onChange={() => setActiveTab('imageExamples')}
/>
<div className="tab-content bg-base-100 border-base-300 p-6">
<Examples fileType="image" />
</div>
<input
type="radio"
name="my_tabs_6"
className="tab"
aria-label="Audio Examples"
checked={activeTab === 'audioExamples'}
onChange={() => setActiveTab('audioExamples')}
/>
<div className="tab-content bg-base-100 border-base-300 p-6">
<Examples fileType="audio" />
</div>
<input
type="radio"
name="my_tabs_6"
className="tab"
aria-label="Video Examples"
checked={activeTab === 'videoExamples'}
onChange={() => setActiveTab('videoExamples')}
/>
<div className="tab-content bg-base-100 border-base-300 p-6">
<Examples fileType="video" />
</div>
</div>
</div>
)
}
export default App
|