Spaces:
Running
Running
Update index.html
Browse files- index.html +77 -19
index.html
CHANGED
@@ -1,19 +1,77 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>BaseBench</title>
|
7 |
+
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
font-family: Arial, sans-serif;
|
11 |
+
max-width: 800px;
|
12 |
+
margin: 0 auto;
|
13 |
+
padding: 20px;
|
14 |
+
transition: background-color 0.3s, color 0.3s;
|
15 |
+
}
|
16 |
+
body.dark-mode {
|
17 |
+
background-color: #1a1a1a;
|
18 |
+
color: #f0f0f0;
|
19 |
+
}
|
20 |
+
h1 {
|
21 |
+
text-align: center;
|
22 |
+
}
|
23 |
+
#content {
|
24 |
+
margin-top: 20px;
|
25 |
+
}
|
26 |
+
#theme-toggle {
|
27 |
+
position: absolute;
|
28 |
+
top: 10px;
|
29 |
+
right: 10px;
|
30 |
+
padding: 5px 10px;
|
31 |
+
background-color: #4CAF50;
|
32 |
+
color: white;
|
33 |
+
border: none;
|
34 |
+
cursor: pointer;
|
35 |
+
}
|
36 |
+
table {
|
37 |
+
border-collapse: collapse;
|
38 |
+
width: 100%;
|
39 |
+
}
|
40 |
+
th, td {
|
41 |
+
border: 1px solid #ddd;
|
42 |
+
padding: 8px;
|
43 |
+
text-align: left;
|
44 |
+
}
|
45 |
+
.dark-mode th, .dark-mode td {
|
46 |
+
border-color: #444;
|
47 |
+
}
|
48 |
+
</style>
|
49 |
+
</head>
|
50 |
+
<body>
|
51 |
+
<h1>BaseBench</h1>
|
52 |
+
<button id="theme-toggle">Dark/Light Theme</button>
|
53 |
+
<div id="content"></div>
|
54 |
+
|
55 |
+
<script>
|
56 |
+
const markdown = `
|
57 |
+
| Rank | Model | Accuracy | Time | Speed |
|
58 |
+
|------|-----------------------------------|-------------------|-------|----------|
|
59 |
+
| 1 | openai/gpt-4o-mini | 36.92% (923/2500) | 08:28 | 4.91it/s |
|
60 |
+
| 2 | anthropic/claude-3-haiku:beta | 36.72% (918/2500) | 06:20 | 6.57it/s |
|
61 |
+
| 3 | google/gemma-2-27b-it | 25.24% (631/2500) | 05:52 | 7.08it/s |
|
62 |
+
| 4 | meta-llama/llama-3.1-70b-instruct | 19.04% (476/2500) | 18:01 | 2.31it/s |
|
63 |
+
|
64 |
+
`;
|
65 |
+
|
66 |
+
document.addEventListener('DOMContentLoaded', function() {
|
67 |
+
const content = document.getElementById('content');
|
68 |
+
content.innerHTML = marked.parse(markdown);
|
69 |
+
|
70 |
+
const themeToggle = document.getElementById('theme-toggle');
|
71 |
+
themeToggle.addEventListener('click', function() {
|
72 |
+
document.body.classList.toggle('dark-mode');
|
73 |
+
});
|
74 |
+
});
|
75 |
+
</script>
|
76 |
+
</body>
|
77 |
+
</html>
|