fdeniz commited on
Commit
33f0006
·
1 Parent(s): 7236464

Removed unused libraries

Browse files
package-lock.json CHANGED
@@ -17,7 +17,6 @@
17
  "@mui/x-charts": "^7.11.0",
18
  "@mui/x-data-grid": "^7.10.0",
19
  "@reduxjs/toolkit": "^2.2.5",
20
- "amplitude-js": "^8.21.9",
21
  "axios": "^1.7.2",
22
  "chart.js": "^4.4.4",
23
  "dompurify": "^3.2.7",
@@ -47,53 +46,6 @@
47
  "vite": "^5.2.0"
48
  }
49
  },
50
- "node_modules/@amplitude/analytics-connector": {
51
- "version": "1.6.4",
52
- "resolved": "https://registry.npmjs.org/@amplitude/analytics-connector/-/analytics-connector-1.6.4.tgz",
53
- "integrity": "sha512-SpIv0IQMNIq6SH3UqFGiaZyGSc7PBZwRdq7lvP0pBxW8i4Ny+8zwI0pV+VMfMHQwWY3wdIbWw5WQphNjpdq1/Q==",
54
- "license": "MIT"
55
- },
56
- "node_modules/@amplitude/types": {
57
- "version": "1.10.2",
58
- "resolved": "https://registry.npmjs.org/@amplitude/types/-/types-1.10.2.tgz",
59
- "integrity": "sha512-I8qenRI7uU6wKNb9LiZrAosSHVoNHziXouKY81CrqxH9xhVTEIJFXeuCV0hbtBr0Al/8ejnGjQRx+S2SvU/pPg==",
60
- "license": "MIT",
61
- "engines": {
62
- "node": ">=10"
63
- }
64
- },
65
- "node_modules/@amplitude/ua-parser-js": {
66
- "version": "0.7.33",
67
- "resolved": "https://registry.npmjs.org/@amplitude/ua-parser-js/-/ua-parser-js-0.7.33.tgz",
68
- "integrity": "sha512-wKEtVR4vXuPT9cVEIJkYWnlF++Gx3BdLatPBM+SZ1ztVIvnhdGBZR/mn9x/PzyrMcRlZmyi6L56I2J3doVBnjA==",
69
- "funding": [
70
- {
71
- "type": "opencollective",
72
- "url": "https://opencollective.com/ua-parser-js"
73
- },
74
- {
75
- "type": "paypal",
76
- "url": "https://paypal.me/faisalman"
77
- }
78
- ],
79
- "license": "MIT",
80
- "engines": {
81
- "node": "*"
82
- }
83
- },
84
- "node_modules/@amplitude/utils": {
85
- "version": "1.10.2",
86
- "resolved": "https://registry.npmjs.org/@amplitude/utils/-/utils-1.10.2.tgz",
87
- "integrity": "sha512-tVsHXu61jITEtRjB7NugQ5cVDd4QDzne8T3ifmZye7TiJeUfVRvqe44gDtf55A+7VqhDhyEIIXTA1iVcDGqlEw==",
88
- "license": "MIT",
89
- "dependencies": {
90
- "@amplitude/types": "^1.10.2",
91
- "tslib": "^2.0.0"
92
- },
93
- "engines": {
94
- "node": ">=10"
95
- }
96
- },
97
  "node_modules/@babel/code-frame": {
98
  "version": "7.24.7",
99
  "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz",
@@ -2157,20 +2109,6 @@
2157
  "url": "https://github.com/sponsors/epoberezkin"
2158
  }
2159
  },
2160
- "node_modules/amplitude-js": {
2161
- "version": "8.21.9",
2162
- "resolved": "https://registry.npmjs.org/amplitude-js/-/amplitude-js-8.21.9.tgz",
2163
- "integrity": "sha512-d0jJH00wbXu7sxKtVwkdSXtVffjqdUrxuACKlnzP7jU5qt9wriXXMgHifdH5Oq+buKmyF8wKL9S02gAykysURA==",
2164
- "license": "MIT",
2165
- "dependencies": {
2166
- "@amplitude/analytics-connector": "^1.4.6",
2167
- "@amplitude/ua-parser-js": "0.7.33",
2168
- "@amplitude/utils": "^1.10.2",
2169
- "@babel/runtime": "^7.21.0",
2170
- "blueimp-md5": "^2.19.0",
2171
- "query-string": "8.1.0"
2172
- }
2173
- },
2174
  "node_modules/ansi-regex": {
2175
  "version": "5.0.1",
2176
  "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
@@ -2398,12 +2336,6 @@
2398
  "node": ">= 0.6.0"
2399
  }
2400
  },
2401
- "node_modules/blueimp-md5": {
2402
- "version": "2.19.0",
2403
- "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.19.0.tgz",
2404
- "integrity": "sha512-DRQrD6gJyy8FbiE4s+bDoXS9hiW3Vbx5uCdwvcCf3zLHL+Iv7LtGHLpr+GZV8rHG8tK766FGYBwRbu8pELTt+w==",
2405
- "license": "MIT"
2406
- },
2407
  "node_modules/brace-expansion": {
2408
  "version": "1.1.11",
2409
  "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
@@ -2823,15 +2755,6 @@
2823
  }
2824
  }
2825
  },
2826
- "node_modules/decode-uri-component": {
2827
- "version": "0.4.1",
2828
- "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.4.1.tgz",
2829
- "integrity": "sha512-+8VxcR21HhTy8nOt6jf20w0c9CADrw1O8d+VZ/YzzCt4bJ3uBjw+D1q2osAB8RnpwwaeYBxy0HyKQxD5JBMuuQ==",
2830
- "license": "MIT",
2831
- "engines": {
2832
- "node": ">=14.16"
2833
- }
2834
- },
2835
  "node_modules/deep-is": {
2836
  "version": "0.1.4",
2837
  "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@@ -3526,18 +3449,6 @@
3526
  "node": "^10.12.0 || >=12.0.0"
3527
  }
3528
  },
3529
- "node_modules/filter-obj": {
3530
- "version": "5.1.0",
3531
- "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-5.1.0.tgz",
3532
- "integrity": "sha512-qWeTREPoT7I0bifpPUXtxkZJ1XJzxWtfoWWkdVGqa+eCr3SHW/Ocp89o8vLvbUuQnadybJpjOKu4V+RwO6sGng==",
3533
- "license": "MIT",
3534
- "engines": {
3535
- "node": ">=14.16"
3536
- },
3537
- "funding": {
3538
- "url": "https://github.com/sponsors/sindresorhus"
3539
- }
3540
- },
3541
  "node_modules/find-root": {
3542
  "version": "1.1.0",
3543
  "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
@@ -5077,23 +4988,6 @@
5077
  "node": ">=6"
5078
  }
5079
  },
5080
- "node_modules/query-string": {
5081
- "version": "8.1.0",
5082
- "resolved": "https://registry.npmjs.org/query-string/-/query-string-8.1.0.tgz",
5083
- "integrity": "sha512-BFQeWxJOZxZGix7y+SByG3F36dA0AbTy9o6pSmKFcFz7DAj0re9Frkty3saBn3nHo3D0oZJ/+rx3r8H8r8Jbpw==",
5084
- "license": "MIT",
5085
- "dependencies": {
5086
- "decode-uri-component": "^0.4.1",
5087
- "filter-obj": "^5.1.0",
5088
- "split-on-first": "^3.0.0"
5089
- },
5090
- "engines": {
5091
- "node": ">=14.16"
5092
- },
5093
- "funding": {
5094
- "url": "https://github.com/sponsors/sindresorhus"
5095
- }
5096
- },
5097
  "node_modules/queue-microtask": {
5098
  "version": "1.2.3",
5099
  "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
@@ -5635,18 +5529,6 @@
5635
  "url": "https://github.com/sponsors/wooorm"
5636
  }
5637
  },
5638
- "node_modules/split-on-first": {
5639
- "version": "3.0.0",
5640
- "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-3.0.0.tgz",
5641
- "integrity": "sha512-qxQJTx2ryR0Dw0ITYyekNQWpz6f8dGd7vffGNflQQ3Iqj9NJ6qiZ7ELpZsJ/QBhIVAiDfXdag3+Gp8RvWa62AA==",
5642
- "license": "MIT",
5643
- "engines": {
5644
- "node": ">=12"
5645
- },
5646
- "funding": {
5647
- "url": "https://github.com/sponsors/sindresorhus"
5648
- }
5649
- },
5650
  "node_modules/stackblur-canvas": {
5651
  "version": "2.7.0",
5652
  "resolved": "https://registry.npmjs.org/stackblur-canvas/-/stackblur-canvas-2.7.0.tgz",
 
17
  "@mui/x-charts": "^7.11.0",
18
  "@mui/x-data-grid": "^7.10.0",
19
  "@reduxjs/toolkit": "^2.2.5",
 
20
  "axios": "^1.7.2",
21
  "chart.js": "^4.4.4",
22
  "dompurify": "^3.2.7",
 
46
  "vite": "^5.2.0"
47
  }
48
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  "node_modules/@babel/code-frame": {
50
  "version": "7.24.7",
51
  "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz",
 
2109
  "url": "https://github.com/sponsors/epoberezkin"
2110
  }
2111
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2112
  "node_modules/ansi-regex": {
2113
  "version": "5.0.1",
2114
  "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
 
2336
  "node": ">= 0.6.0"
2337
  }
2338
  },
 
 
 
 
 
 
2339
  "node_modules/brace-expansion": {
2340
  "version": "1.1.11",
2341
  "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
 
2755
  }
2756
  }
2757
  },
 
 
 
 
 
 
 
 
 
2758
  "node_modules/deep-is": {
2759
  "version": "0.1.4",
2760
  "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
 
3449
  "node": "^10.12.0 || >=12.0.0"
3450
  }
3451
  },
 
 
 
 
 
 
 
 
 
 
 
 
3452
  "node_modules/find-root": {
3453
  "version": "1.1.0",
3454
  "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",
 
4988
  "node": ">=6"
4989
  }
4990
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4991
  "node_modules/queue-microtask": {
4992
  "version": "1.2.3",
4993
  "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
 
5529
  "url": "https://github.com/sponsors/wooorm"
5530
  }
5531
  },
 
 
 
 
 
 
 
 
 
 
 
 
5532
  "node_modules/stackblur-canvas": {
5533
  "version": "2.7.0",
5534
  "resolved": "https://registry.npmjs.org/stackblur-canvas/-/stackblur-canvas-2.7.0.tgz",
package.json CHANGED
@@ -19,7 +19,6 @@
19
  "@mui/x-charts": "^7.11.0",
20
  "@mui/x-data-grid": "^7.10.0",
21
  "@reduxjs/toolkit": "^2.2.5",
22
- "amplitude-js": "^8.21.9",
23
  "axios": "^1.7.2",
24
  "chart.js": "^4.4.4",
25
  "dompurify": "^3.2.7",
 
19
  "@mui/x-charts": "^7.11.0",
20
  "@mui/x-data-grid": "^7.10.0",
21
  "@reduxjs/toolkit": "^2.2.5",
 
22
  "axios": "^1.7.2",
23
  "chart.js": "^4.4.4",
24
  "dompurify": "^3.2.7",
src/features/landing/FAQ/FAQ-styles.js CHANGED
@@ -1,5 +1,5 @@
1
  export const styles = {
2
- faqBox: { width: "100%" },
3
  root: { py: { xs: 8, sm: 16 } },
4
 
5
  description: {
@@ -7,8 +7,6 @@ export const styles = {
7
  },
8
  title: {
9
  color: "text.primary",
10
- width: { sm: "100%", md: "60%" },
11
- textAlign: { sm: "left", md: "center" },
12
  },
13
  };
14
 
 
1
  export const styles = {
2
+ faqBox: { width: { sm: "100%", md: "80%" } },
3
  root: { py: { xs: 8, sm: 16 } },
4
 
5
  description: {
 
7
  },
8
  title: {
9
  color: "text.primary",
 
 
10
  },
11
  };
12
 
src/features/landing/FAQ/FAQ.jsx CHANGED
@@ -1,5 +1,5 @@
1
- import { useState } from 'react';
2
- import Accordion from '@mui/material/Accordion';
3
 
4
  import {
5
  AccordionDetails,
@@ -8,11 +8,11 @@ import {
8
  Container,
9
  Link,
10
  Typography,
11
- } from '@mui/material';
12
 
13
- import styles from './FAQ-styles';
14
 
15
- import { ExpandMore } from '@mui/icons-material';
16
 
17
  export function FAQ() {
18
  const [expanded, setExpanded] = useState(false);
@@ -22,16 +22,19 @@ export function FAQ() {
22
  };
23
 
24
  const title = (
25
- <Typography variant="h4" sx={styles.title}>
26
  Frequently asked questions
27
  </Typography>
28
  );
29
 
30
  return (
31
  <Container id="faq" sx={styles.root}>
32
- {title}
33
  <Box sx={styles.faqBox}>
34
- <Accordion expanded={expanded === 'panel1'} onChange={handleChange('panel1')}>
 
 
 
 
35
  <AccordionSummary expandIcon={<ExpandMore />} id="panel1d-header">
36
  <Typography component="h3" variant="subtitle2">
37
  How do I submit my model for examination?
@@ -39,14 +42,18 @@ export function FAQ() {
39
  </AccordionSummary>
40
  <AccordionDetails>
41
  <Typography variant="body2" gutterBottom sx={styles.description}>
42
- We support examination of all models published on Hugging Face. To examine a model,
43
- simply provide the Hugging Face path to the model, a Hugging Face token with read
44
- permission, and select the service/test that you want to perform. To examine a private
45
- model, simply provide the model name, API endpoint, and API token.
 
46
  </Typography>
47
  </AccordionDetails>
48
  </Accordion>
49
- <Accordion expanded={expanded === 'panel2'} onChange={handleChange('panel2')}>
 
 
 
50
  <AccordionSummary expandIcon={<ExpandMore />} id="panel2d-header">
51
  <Typography component="h3" variant="subtitle2">
52
  How long does it take to examine my model?
@@ -54,12 +61,16 @@ export function FAQ() {
54
  </AccordionSummary>
55
  <AccordionDetails>
56
  <Typography variant="body2" gutterBottom sx={styles.description}>
57
- The examination time of a model is dependent on the model's inference time. For a 7B
58
- parameter model such as LLaMA 2, the average examination time is 15 minutes.
 
59
  </Typography>
60
  </AccordionDetails>
61
  </Accordion>
62
- <Accordion expanded={expanded === 'panel3'} onChange={handleChange('panel3')}>
 
 
 
63
  <AccordionSummary expandIcon={<ExpandMore />} id="panel3d-header">
64
  <Typography component="h3" variant="subtitle2">
65
  What makes your services stand out from others in the market?
@@ -67,14 +78,18 @@ export function FAQ() {
67
  </AccordionSummary>
68
  <AccordionDetails>
69
  <Typography variant="body2" gutterBottom sx={styles.description}>
70
- Our product unifies the broad landscape of model safety and security concerns via a
71
- single report. We conduct a wide range of tests under each service, providing users
72
- with detailed breakdowns and insights of the results. Users can compare models via our
 
73
  interactive leaderboard and export results as a PDF report.
74
  </Typography>
75
  </AccordionDetails>
76
  </Accordion>
77
- <Accordion expanded={expanded === 'panel4'} onChange={handleChange('panel4')}>
 
 
 
78
  <AccordionSummary expandIcon={<ExpandMore />} id="panel4d-header">
79
  <Typography component="h3" variant="subtitle2">
80
  How can the examination improve my model?
@@ -82,9 +97,10 @@ export function FAQ() {
82
  </AccordionSummary>
83
  <AccordionDetails>
84
  <Typography variant="body2" gutterBottom sx={styles.description}>
85
- The examination produces a report of the model's robustness across different areas of
86
- safety and security. These results reveal threats that the model can be guarded
87
- against and identify areas where model safety can be improved.
 
88
  </Typography>
89
  </AccordionDetails>
90
  </Accordion>
 
1
+ import { useState } from "react";
2
+ import Accordion from "@mui/material/Accordion";
3
 
4
  import {
5
  AccordionDetails,
 
8
  Container,
9
  Link,
10
  Typography,
11
+ } from "@mui/material";
12
 
13
+ import styles from "./FAQ-styles";
14
 
15
+ import { ExpandMore } from "@mui/icons-material";
16
 
17
  export function FAQ() {
18
  const [expanded, setExpanded] = useState(false);
 
22
  };
23
 
24
  const title = (
25
+ <Typography component="h2" variant="h4" gutterBottom sx={styles.title}>
26
  Frequently asked questions
27
  </Typography>
28
  );
29
 
30
  return (
31
  <Container id="faq" sx={styles.root}>
 
32
  <Box sx={styles.faqBox}>
33
+ {title}
34
+ <Accordion
35
+ expanded={expanded === "panel1"}
36
+ onChange={handleChange("panel1")}
37
+ >
38
  <AccordionSummary expandIcon={<ExpandMore />} id="panel1d-header">
39
  <Typography component="h3" variant="subtitle2">
40
  How do I submit my model for examination?
 
42
  </AccordionSummary>
43
  <AccordionDetails>
44
  <Typography variant="body2" gutterBottom sx={styles.description}>
45
+ We support examination of all models published on Hugging Face. To
46
+ examine a model, simply provide the Hugging Face path to the
47
+ model, a Hugging Face token with read permission, and select the
48
+ service/test that you want to perform. To examine a private model,
49
+ simply provide the model name, API endpoint, and API token.
50
  </Typography>
51
  </AccordionDetails>
52
  </Accordion>
53
+ <Accordion
54
+ expanded={expanded === "panel2"}
55
+ onChange={handleChange("panel2")}
56
+ >
57
  <AccordionSummary expandIcon={<ExpandMore />} id="panel2d-header">
58
  <Typography component="h3" variant="subtitle2">
59
  How long does it take to examine my model?
 
61
  </AccordionSummary>
62
  <AccordionDetails>
63
  <Typography variant="body2" gutterBottom sx={styles.description}>
64
+ The examination time of a model is dependent on the model's
65
+ inference time. For a 7B parameter model such as LLaMA 2, the
66
+ average examination time is 15 minutes.
67
  </Typography>
68
  </AccordionDetails>
69
  </Accordion>
70
+ <Accordion
71
+ expanded={expanded === "panel3"}
72
+ onChange={handleChange("panel3")}
73
+ >
74
  <AccordionSummary expandIcon={<ExpandMore />} id="panel3d-header">
75
  <Typography component="h3" variant="subtitle2">
76
  What makes your services stand out from others in the market?
 
78
  </AccordionSummary>
79
  <AccordionDetails>
80
  <Typography variant="body2" gutterBottom sx={styles.description}>
81
+ Our product unifies the broad landscape of model safety and
82
+ security concerns via a single report. We conduct a wide range of
83
+ tests under each service, providing users with detailed breakdowns
84
+ and insights of the results. Users can compare models via our
85
  interactive leaderboard and export results as a PDF report.
86
  </Typography>
87
  </AccordionDetails>
88
  </Accordion>
89
+ <Accordion
90
+ expanded={expanded === "panel4"}
91
+ onChange={handleChange("panel4")}
92
+ >
93
  <AccordionSummary expandIcon={<ExpandMore />} id="panel4d-header">
94
  <Typography component="h3" variant="subtitle2">
95
  How can the examination improve my model?
 
97
  </AccordionSummary>
98
  <AccordionDetails>
99
  <Typography variant="body2" gutterBottom sx={styles.description}>
100
+ The examination produces a report of the model's robustness across
101
+ different areas of safety and security. These results reveal
102
+ threats that the model can be guarded against and identify areas
103
+ where model safety can be improved.
104
  </Typography>
105
  </AccordionDetails>
106
  </Accordion>