aicodingfun commited on
Commit
7b6a123
Β·
verified Β·
1 Parent(s): 6759587

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +64 -19
index.html CHANGED
@@ -1,19 +1,64 @@
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>NBA Pose Detector</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ </head>
9
+ <body>
10
+ <div class="bg-decoration">
11
+ <div class="court-line"></div>
12
+ <div class="court-line"></div>
13
+ </div>
14
+
15
+ <div class="container">
16
+ <div class="header">
17
+ <h1 class="title">πŸ€ NBA POSE DETECTOR</h1>
18
+ <p class="subtitle">Analyze your basketball pose with AI and discover your NBA star match!</p>
19
+ </div>
20
+
21
+ <div class="main-content">
22
+ <div class="camera-section">
23
+ <div class="camera-header">
24
+ <h2 class="camera-title">πŸ“· Camera Feed</h2>
25
+ <div class="status-indicator" id="statusIndicator"></div>
26
+ </div>
27
+
28
+ <div class="canvas-container">
29
+ <canvas id="canvas"></canvas>
30
+ <div class="loading-spinner" id="loadingSpinner"></div>
31
+ </div>
32
+
33
+ <button class="start-btn" onclick="init()" id="startBtn" style="opacity: 0.6;">
34
+ ⏳ Loading...
35
+ </button>
36
+ </div>
37
+
38
+ <div class="results-section">
39
+ <h2 class="results-title">
40
+ πŸ€
41
+ Detection Results
42
+ </h2>
43
+ <div id="label-container">
44
+ <div style="text-align: center; color: #888; padding: 40px;">
45
+ <p>Click the "Start Detection" button to activate the pose detection.</p>
46
+ <p style="margin-top: 10px; font-size: 0.9rem;">Strike your best basketball pose! πŸ€</p>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ <div class="footer">
53
+ <p class="footer-text">
54
+ Powered by Teachable Machine & TensorFlow.js |
55
+ <span style="color: #ffd700;">Let AI reveal your basketball potential!</span>
56
+ </p>
57
+ </div>
58
+ </div>
59
+
60
+ <script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
61
+ <script src="https://cdn.jsdelivr.net/npm/@teachablemachine/[email protected]/dist/teachablemachine-pose.min.js"></script>
62
+ <script src="script.js"></script>
63
+ </body>
64
+ </html>