maringetxway commited on
Commit
e60144f
·
verified ·
1 Parent(s): e21192d

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +33 -18
index.html CHANGED
@@ -1,19 +1,34 @@
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>LeRobot Demo Gallery</title>
7
+ <link rel="stylesheet" href="style.css" />
8
+ </head>
9
+ <body>
10
+ <div class="container">
11
+ <h1>🤖 LeRobot Hackathon Demos</h1>
12
+
13
+ <select id="teamSelect">
14
+ <option value="https://huggingface.co/datasets/LeRobot-worldwide-hackathon/submissions/resolve/main/videos/demo1.mp4">Team Alpha - Project X</option>
15
+ <option value="https://huggingface.co/datasets/LeRobot-worldwide-hackathon/submissions/resolve/main/videos/demo2.mp4">Team Beta - Project Y</option>
16
+ <!-- Add more options as needed -->
17
+ </select>
18
+
19
+ <video id="videoPlayer" width="720" height="400" controls autoplay muted playsinline>
20
+ <source src="https://huggingface.co/datasets/LeRobot-worldwide-hackathon/submissions/resolve/main/videos/demo1.mp4" type="video/mp4" />
21
+ Your browser does not support the video tag.
22
+ </video>
23
+ </div>
24
+
25
+ <script>
26
+ const player = document.getElementById("videoPlayer");
27
+ const select = document.getElementById("teamSelect");
28
+ select.addEventListener("change", () => {
29
+ player.src = select.value;
30
+ player.play();
31
+ });
32
+ </script>
33
+ </body>
34
  </html>