Spaces:
Running
Running
Download frontend/src/pages/AddModelPage/AddModelPage.js from braindecode/OpenEEGBench: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/spaces/braindecode/OpenEEGBench/resolve/refs%2Fpr%2F3/frontend/src/pages/AddModelPage/AddModelPage.js
- Command line
-
hf download hf://spaces/braindecode/OpenEEGBench@refs/pr/3/frontend/src/pages/AddModelPage/AddModelPage.js
-
curl -L -o AddModelPage.js https://huggingface.co/spaces/braindecode/OpenEEGBench/resolve/refs%2Fpr%2F3/frontend/src/pages/AddModelPage/AddModelPage.js
1.47 kB
| import React from "react"; | |
| import { Box, CircularProgress } from "@mui/material"; | |
| import { useAuth } from "../../hooks/useAuth"; | |
| import PageHeader from "../../components/shared/PageHeader"; | |
| import EvaluationQueues from "./components/EvaluationQueues/EvaluationQueues"; | |
| import ModelSubmissionForm from "./components/ModelSubmissionForm/ModelSubmissionForm"; | |
| import SubmissionGuide from "./components/SubmissionGuide/SubmissionGuide"; | |
| import SubmissionLimitChecker from "./components/SubmissionLimitChecker/SubmissionLimitChecker"; | |
| function AddModelPage() { | |
| const { isAuthenticated, loading, user } = useAuth(); | |
| if (loading) { | |
| return ( | |
| <Box | |
| sx={{ | |
| display: "flex", | |
| justifyContent: "center", | |
| alignItems: "center", | |
| height: "100vh", | |
| }} | |
| > | |
| <CircularProgress /> | |
| </Box> | |
| ); | |
| } | |
| return ( | |
| <Box sx={{ width: "100%", maxWidth: 1200, margin: "0 auto", py: 4, px: 0 }}> | |
| <PageHeader | |
| title="Submit a Model for Evaluation" | |
| subtitle={ | |
| <> | |
| Add <span style={{ fontWeight: 600 }}>your</span> model to the EEG | |
| Finetune Arena | |
| </> | |
| } | |
| /> | |
| <SubmissionGuide /> | |
| <SubmissionLimitChecker user={user}> | |
| <ModelSubmissionForm user={user} isAuthenticated={isAuthenticated} /> | |
| </SubmissionLimitChecker> | |
| <EvaluationQueues defaultExpanded={false} /> | |
| </Box> | |
| ); | |
| } | |
| export default AddModelPage; | |