tfrere commited on
Commit
05964a6
·
1 Parent(s): c14e026

minor design fixes

Browse files
frontend/src/components/Benchmark/CreateForm.jsx CHANGED
@@ -174,17 +174,23 @@ function CreateForm({ onStartGeneration }) {
174
  };
175
 
176
  return (
177
- <Box sx={{ mt: -2 }}>
 
 
 
 
 
 
 
 
 
178
  <Typography
179
  variant="subtitle1"
180
  component="div"
181
  align="center"
182
- sx={{ mb: 2, color: "text.secondary" }}
183
  >
184
- To create a benchmark, <b>choose</b> a <b>sample document</b> or{" "}
185
- <b>upload</b> your <b>own file/URL</b>.
186
- <br />
187
- (ideally a knowledge base, a FAQ, a news article, etc.)
188
  </Typography>
189
 
190
  <Grid container spacing={2} sx={{ mb: 0 }}>
@@ -429,9 +435,10 @@ function CreateForm({ onStartGeneration }) {
429
  <Box sx={{ display: "flex", justifyContent: "center" }}>
430
  <Button
431
  variant="contained"
 
432
  color="primary"
433
  onClick={handleGenerateClick}
434
- startIcon={<AutoFixHighIcon />}
435
  disabled={!sessionId}
436
  sx={{ mt: 2 }}
437
  >
 
174
  };
175
 
176
  return (
177
+ <Box sx={{ mt: -1 }}>
178
+ <Typography
179
+ variant="h6"
180
+ component="div"
181
+ align="center"
182
+ sx={{ color: "text.primary" }}
183
+ >
184
+ To create a benchmark, <b>choose a sample document</b> or{" "}
185
+ <b>upload your own file/URL</b>.
186
+ </Typography>
187
  <Typography
188
  variant="subtitle1"
189
  component="div"
190
  align="center"
191
+ sx={{ mb: 3, color: "text.secondary" }}
192
  >
193
+ ideally a knowledge base, a FAQ, a news article, etc.
 
 
 
194
  </Typography>
195
 
196
  <Grid container spacing={2} sx={{ mb: 0 }}>
 
435
  <Box sx={{ display: "flex", justifyContent: "center" }}>
436
  <Button
437
  variant="contained"
438
+ size="large"
439
  color="primary"
440
  onClick={handleGenerateClick}
441
+ endIcon={<AutoFixHighIcon sx={{ ml: 0.5 }} />}
442
  disabled={!sessionId}
443
  sx={{ mt: 2 }}
444
  >
frontend/src/components/Benchmark/Display.jsx CHANGED
@@ -104,9 +104,10 @@ const Display = ({
104
  </Tooltip>
105
 
106
  <Button
 
107
  variant="contained"
108
  color="primary"
109
- startIcon={<AssessmentIcon />}
110
  onClick={handleEvaluationClick}
111
  >
112
  Start Evaluation
 
104
  </Tooltip>
105
 
106
  <Button
107
+ size="large"
108
  variant="contained"
109
  color="primary"
110
+ endIcon={<AssessmentIcon />}
111
  onClick={handleEvaluationClick}
112
  >
113
  Start Evaluation
frontend/src/components/Benchmark/Generator.jsx CHANGED
@@ -499,7 +499,7 @@ const Generator = ({ sessionId, isDefaultDocument, onComplete }) => {
499
  <Paper
500
  elevation={3}
501
  sx={{
502
- p: 4,
503
  display: "flex",
504
  flexDirection: "column",
505
  alignItems: "center",
 
499
  <Paper
500
  elevation={3}
501
  sx={{
502
+ p: 8,
503
  display: "flex",
504
  flexDirection: "column",
505
  alignItems: "center",
frontend/src/components/Evaluation/Evaluation.jsx CHANGED
@@ -132,7 +132,7 @@ const BenchmarkEvaluation = ({ sessionId, isDefaultDocument, onComplete }) => {
132
  <Paper
133
  elevation={3}
134
  sx={{
135
- p: 4,
136
  display: "flex",
137
  flexDirection: "column",
138
  alignItems: "center",
 
132
  <Paper
133
  elevation={3}
134
  sx={{
135
+ p: 8,
136
  display: "flex",
137
  flexDirection: "column",
138
  alignItems: "center",
frontend/src/components/Footer/Footer.js CHANGED
@@ -13,6 +13,23 @@ const Footer = () => {
13
  opacity: 0.7,
14
  }}
15
  >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  <Typography variant="body2" color="text.secondary" sx={{ mx: 4 }}>
17
  We keep <b>processed documents</b> for <b>research purposes</b>, to
18
  which you agree by using the space. For a <b>fully private usage</b>,
 
13
  opacity: 0.7,
14
  }}
15
  >
16
+ {/* <Typography
17
+ variant="body2"
18
+ color="text.secondary"
19
+ sx={{ maxWidth: "800px", mx: "auto", mt: 2 }}
20
+ >
21
+ Currently, this is an <b>extremely minimal demo</b>. <br />
22
+ To <b>unlock the full capabilities</b>, please visit our{" "}
23
+ <Link
24
+ href="https://github.com/huggingface/yourbench"
25
+ target="_blank"
26
+ rel="noopener noreferrer"
27
+ color="inherit"
28
+ >
29
+ <b>GitHub</b>
30
+ </Link>
31
+ !
32
+ </Typography> */}
33
  <Typography variant="body2" color="text.secondary" sx={{ mx: 4 }}>
34
  We keep <b>processed documents</b> for <b>research purposes</b>, to
35
  which you agree by using the space. For a <b>fully private usage</b>,
frontend/src/components/Intro.jsx CHANGED
@@ -39,15 +39,28 @@ const Intro = () => {
39
  Yourbench Demo
40
  </Typography>
41
  <Typography variant="body1" sx={{ maxWidth: "800px", mx: "auto" }}>
42
- YourBench is an <b>open-source framework</b> for generating{" "}
43
  <b>domain-specific benchmarks</b> in a <b>zero-shot</b> manner. It aims
44
  to keep your large language models on their toes—even as new data
45
- sources, domains, and knowledge demands evolve.
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  </Typography>
47
  <Typography
48
  variant="body2"
49
  color="text.secondary"
50
- sx={{ maxWidth: "800px", mx: "auto", mt: 2, opacity: 0.7 }}
51
  >
52
  Currently, this is an <b>extremely minimal demo</b>. <br />
53
  To <b>unlock the full capabilities</b>, please visit our{" "}
 
39
  Yourbench Demo
40
  </Typography>
41
  <Typography variant="body1" sx={{ maxWidth: "800px", mx: "auto" }}>
42
+ <b>YourBench</b> is an <b>open-source framework</b> for generating{" "}
43
  <b>domain-specific benchmarks</b> in a <b>zero-shot</b> manner. It aims
44
  to keep your large language models on their toes—even as new data
45
+ sources, domains, and knowledge demands evolve. <br />
46
+ {/* <span style={{ opacity: 0.5 }}>
47
+ Currently, this is an <b>extremely minimal demo</b>. <br />
48
+ To <b>unlock the full capabilities</b>, please visit our{" "}
49
+ <Link
50
+ href="https://github.com/huggingface/yourbench"
51
+ target="_blank"
52
+ rel="noopener noreferrer"
53
+ color="inherit"
54
+ >
55
+ <b>GitHub</b>
56
+ </Link>
57
+ !
58
+ </span> */}
59
  </Typography>
60
  <Typography
61
  variant="body2"
62
  color="text.secondary"
63
+ sx={{ maxWidth: "800px", mx: "auto", mt: 2 }}
64
  >
65
  Currently, this is an <b>extremely minimal demo</b>. <br />
66
  To <b>unlock the full capabilities</b>, please visit our{" "}