leafspark commited on
Commit
cb4e9e2
·
verified ·
1 Parent(s): f39ebc6

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +77 -19
index.html CHANGED
@@ -1,19 +1,77 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>