EmTpro01 commited on
Commit
afa1a06
·
verified ·
1 Parent(s): ae02d1a

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +209 -209
static/index.html CHANGED
@@ -1,210 +1,210 @@
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>Vibe ML - AI Music Recommendations</title>
7
- <link rel="stylesheet" href="styles.css">
8
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
9
- <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
10
- </head>
11
- <body>
12
- <div class="app-container">
13
- <!-- Navigation Bar -->
14
- <nav class="navbar">
15
- <div class="nav-content">
16
- <div class="nav-logo">
17
- <i class="fas fa-music"></i>
18
- <span>Vibe ML</span>
19
- </div>
20
- <div class="nav-links">
21
- <a href="#home" class="nav-link active" data-page="home">
22
- <i class="fas fa-home"></i>
23
- Get Recommendations
24
- </a>
25
- <a href="#about" class="nav-link" data-page="about">
26
- <i class="fas fa-info-circle"></i>
27
- About
28
- </a>
29
- </div>
30
- <div class="nav-user">
31
- <i class="fab fa-github"></i>
32
- <span>GitHub</span>
33
- </div>
34
- </div>
35
- </nav>
36
-
37
- <!-- Home Page (Music Recommendations) -->
38
- <div id="homePage" class="page active">
39
- <!-- Main Content -->
40
- <main class="main-content">
41
- <!-- Search Section -->
42
- <section class="search-section">
43
- <div class="search-container">
44
- <h2>Discover Your Next Favorite Song</h2>
45
- <div class="search-box">
46
- <i class="fas fa-search search-icon"></i>
47
- <input
48
- type="text"
49
- id="searchInput"
50
- placeholder="Search by song name or artist..."
51
- autocomplete="off"
52
- >
53
- <div class="search-spinner" id="searchSpinner">
54
- <i class="fas fa-spinner fa-spin"></i>
55
- </div>
56
- </div>
57
- <div class="search-results" id="searchResults"></div>
58
- </div>
59
- </section>
60
-
61
- <!-- Trending Songs Section -->
62
- <section class="trending-section" id="trendingSection">
63
- <div class="trending-container">
64
- <div class="trending-header">
65
- <h3>Trending Songs</h3>
66
- <p>Popular tracks to get you started</p>
67
- </div>
68
- <div class="trending-grid" id="trendingGrid">
69
- <!-- Trending songs will be inserted here -->
70
- </div>
71
- </div>
72
- </section>
73
-
74
- <!-- Current Playing Section -->
75
- <section class="now-playing-section" id="nowPlayingSection" style="display: none;">
76
- <div class="now-playing-container">
77
- <div class="now-playing-header">
78
- <h3>Now Playing</h3>
79
- </div>
80
- <div class="current-song-card" id="currentSongCard">
81
- <!-- Current song details will be inserted here -->
82
- </div>
83
- </div>
84
- </section>
85
-
86
- <!-- Recommendations Section -->
87
- <section class="recommendations-section" id="recommendationsSection" style="display: none;">
88
- <div class="recommendations-container">
89
- <div class="recommendations-header">
90
- <h3>Recommended for You</h3>
91
- <p>Based on your current selection</p>
92
- </div>
93
- <div class="recommendations-grid" id="recommendationsGrid">
94
- <!-- Recommended songs will be inserted here -->
95
- </div>
96
- </div>
97
- </section>
98
- </main>
99
- </div>
100
-
101
- <!-- About Page -->
102
- <div id="aboutPage" class="page">
103
- <main class="about-main">
104
- <div class="about-hero">
105
- <h1>About Vibe ML</h1>
106
- <p class="about-subtitle">
107
- Vibe ML is an intelligent music recommendation system that helps you discover new music through
108
- advanced audio analysis and machine learning technology.
109
- </p>
110
- </div>
111
-
112
- <div class="features-grid">
113
- <div class="feature-card">
114
- <div class="feature-icon">
115
- <i class="fas fa-brain"></i>
116
- </div>
117
- <h3>Machine Learning Powered</h3>
118
- <p>Using K-means clustering with distinct clusters, we group songs based on their audio features to find the most similar tracks.</p>
119
- </div>
120
-
121
- <div class="feature-card">
122
- <div class="feature-icon">
123
- <i class="fas fa-waveform"></i>
124
- </div>
125
- <h3>Audio Analysis</h3>
126
- <p>We analyze multiple audio features including danceability, energy, valence, acousticness, and tempo to understand each song's unique characteristics.</p>
127
- </div>
128
-
129
- <div class="feature-card">
130
- <div class="feature-icon">
131
- <i class="fas fa-database"></i>
132
- </div>
133
- <h3>Vast Music Database</h3>
134
- <p>Our system is built on a comprehensive database of songs, allowing for diverse and accurate recommendations across different genres and styles.</p>
135
- </div>
136
-
137
- <div class="feature-card">
138
- <div class="feature-icon">
139
- <i class="fas fa-user-music"></i>
140
- </div>
141
- <h3>Personalized Discovery</h3>
142
- <p>Find new music based on songs you already love, helping you discover artists and tracks that match your musical taste.</p>
143
- </div>
144
- </div>
145
-
146
- <div class="how-it-works">
147
- <h2>How It Works</h2>
148
- <div class="how-it-works-content">
149
- <p class="how-it-works-intro">
150
- Vibe ML uses a sophisticated K-means clustering algorithm with 20 clusters to group songs based on their
151
- audio features. Our recommendation process follows these steps:
152
- </p>
153
-
154
- <div class="process-steps">
155
- <ol class="steps-list">
156
- <li>Standardizes the song's audio features using StandardScaler</li>
157
- <li>Identifies which of the 20 clusters the song belongs to</li>
158
- <li>Finds songs within the same cluster</li>
159
- <li>Calculates Euclidean distances to find the most similar matches</li>
160
- <li>Enriches results with iTunes preview data</li>
161
- </ol>
162
- </div>
163
-
164
- <div class="audio-features-section">
165
- <p class="features-intro">The audio features we analyze include:</p>
166
- <div class="features-columns">
167
- <div class="features-column">
168
- <ul class="features-list-simple">
169
- <li>Acousticness</li>
170
- <li>Energy</li>
171
- <li>Liveness</li>
172
- <li>Speechiness</li>
173
- <li>Valence</li>
174
- </ul>
175
- </div>
176
- <div class="features-column">
177
- <ul class="features-list-simple">
178
- <li>Danceability</li>
179
- <li>Instrumentalness</li>
180
- <li>Loudness</li>
181
- <li>Tempo</li>
182
- </ul>
183
- </div>
184
- </div>
185
- </div>
186
- </div>
187
- </div>
188
- </main>
189
- </div>
190
-
191
- <!-- REMOVED: Music Player section completely -->
192
-
193
- <!-- Loading Overlay -->
194
- <div class="loading-overlay" id="loadingOverlay" style="display: none;">
195
- <div class="loading-content">
196
- <div class="loading-spinner"></div>
197
- <p>Getting recommendations...</p>
198
- </div>
199
- </div>
200
-
201
- <!-- Toast Notifications -->
202
- <div class="toast-container" id="toastContainer"></div>
203
- </div>
204
-
205
- <!-- Hidden audio element for playing music -->
206
- <audio id="audioPlayer" preload="metadata"></audio>
207
-
208
- <script src="script.js"></script>
209
- </body>
210
  </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>VibeMl Music Recommendation</title>
7
+ <link rel="stylesheet" href="/styles.css">
8
+ <!-- OR use the static path: <link rel="stylesheet" href="/static/styles.css"> -->
9
+ </head>
10
+ <body>
11
+ <div class="app-container">
12
+ <!-- Navigation Bar -->
13
+ <nav class="navbar">
14
+ <div class="nav-content">
15
+ <div class="nav-logo">
16
+ <i class="fas fa-music"></i>
17
+ <span>Vibe ML</span>
18
+ </div>
19
+ <div class="nav-links">
20
+ <a href="#home" class="nav-link active" data-page="home">
21
+ <i class="fas fa-home"></i>
22
+ Get Recommendations
23
+ </a>
24
+ <a href="#about" class="nav-link" data-page="about">
25
+ <i class="fas fa-info-circle"></i>
26
+ About
27
+ </a>
28
+ </div>
29
+ <div class="nav-user">
30
+ <i class="fab fa-github"></i>
31
+ <span>GitHub</span>
32
+ </div>
33
+ </div>
34
+ </nav>
35
+
36
+ <!-- Home Page (Music Recommendations) -->
37
+ <div id="homePage" class="page active">
38
+ <!-- Main Content -->
39
+ <main class="main-content">
40
+ <!-- Search Section -->
41
+ <section class="search-section">
42
+ <div class="search-container">
43
+ <h2>Discover Your Next Favorite Song</h2>
44
+ <div class="search-box">
45
+ <i class="fas fa-search search-icon"></i>
46
+ <input
47
+ type="text"
48
+ id="searchInput"
49
+ placeholder="Search by song name or artist..."
50
+ autocomplete="off"
51
+ >
52
+ <div class="search-spinner" id="searchSpinner">
53
+ <i class="fas fa-spinner fa-spin"></i>
54
+ </div>
55
+ </div>
56
+ <div class="search-results" id="searchResults"></div>
57
+ </div>
58
+ </section>
59
+
60
+ <!-- Trending Songs Section -->
61
+ <section class="trending-section" id="trendingSection">
62
+ <div class="trending-container">
63
+ <div class="trending-header">
64
+ <h3>Trending Songs</h3>
65
+ <p>Popular tracks to get you started</p>
66
+ </div>
67
+ <div class="trending-grid" id="trendingGrid">
68
+ <!-- Trending songs will be inserted here -->
69
+ </div>
70
+ </div>
71
+ </section>
72
+
73
+ <!-- Current Playing Section -->
74
+ <section class="now-playing-section" id="nowPlayingSection" style="display: none;">
75
+ <div class="now-playing-container">
76
+ <div class="now-playing-header">
77
+ <h3>Now Playing</h3>
78
+ </div>
79
+ <div class="current-song-card" id="currentSongCard">
80
+ <!-- Current song details will be inserted here -->
81
+ </div>
82
+ </div>
83
+ </section>
84
+
85
+ <!-- Recommendations Section -->
86
+ <section class="recommendations-section" id="recommendationsSection" style="display: none;">
87
+ <div class="recommendations-container">
88
+ <div class="recommendations-header">
89
+ <h3>Recommended for You</h3>
90
+ <p>Based on your current selection</p>
91
+ </div>
92
+ <div class="recommendations-grid" id="recommendationsGrid">
93
+ <!-- Recommended songs will be inserted here -->
94
+ </div>
95
+ </div>
96
+ </section>
97
+ </main>
98
+ </div>
99
+
100
+ <!-- About Page -->
101
+ <div id="aboutPage" class="page">
102
+ <main class="about-main">
103
+ <div class="about-hero">
104
+ <h1>About Vibe ML</h1>
105
+ <p class="about-subtitle">
106
+ Vibe ML is an intelligent music recommendation system that helps you discover new music through
107
+ advanced audio analysis and machine learning technology.
108
+ </p>
109
+ </div>
110
+
111
+ <div class="features-grid">
112
+ <div class="feature-card">
113
+ <div class="feature-icon">
114
+ <i class="fas fa-brain"></i>
115
+ </div>
116
+ <h3>Machine Learning Powered</h3>
117
+ <p>Using K-means clustering with distinct clusters, we group songs based on their audio features to find the most similar tracks.</p>
118
+ </div>
119
+
120
+ <div class="feature-card">
121
+ <div class="feature-icon">
122
+ <i class="fas fa-waveform"></i>
123
+ </div>
124
+ <h3>Audio Analysis</h3>
125
+ <p>We analyze multiple audio features including danceability, energy, valence, acousticness, and tempo to understand each song's unique characteristics.</p>
126
+ </div>
127
+
128
+ <div class="feature-card">
129
+ <div class="feature-icon">
130
+ <i class="fas fa-database"></i>
131
+ </div>
132
+ <h3>Vast Music Database</h3>
133
+ <p>Our system is built on a comprehensive database of songs, allowing for diverse and accurate recommendations across different genres and styles.</p>
134
+ </div>
135
+
136
+ <div class="feature-card">
137
+ <div class="feature-icon">
138
+ <i class="fas fa-user-music"></i>
139
+ </div>
140
+ <h3>Personalized Discovery</h3>
141
+ <p>Find new music based on songs you already love, helping you discover artists and tracks that match your musical taste.</p>
142
+ </div>
143
+ </div>
144
+
145
+ <div class="how-it-works">
146
+ <h2>How It Works</h2>
147
+ <div class="how-it-works-content">
148
+ <p class="how-it-works-intro">
149
+ Vibe ML uses a sophisticated K-means clustering algorithm with 20 clusters to group songs based on their
150
+ audio features. Our recommendation process follows these steps:
151
+ </p>
152
+
153
+ <div class="process-steps">
154
+ <ol class="steps-list">
155
+ <li>Standardizes the song's audio features using StandardScaler</li>
156
+ <li>Identifies which of the 20 clusters the song belongs to</li>
157
+ <li>Finds songs within the same cluster</li>
158
+ <li>Calculates Euclidean distances to find the most similar matches</li>
159
+ <li>Enriches results with iTunes preview data</li>
160
+ </ol>
161
+ </div>
162
+
163
+ <div class="audio-features-section">
164
+ <p class="features-intro">The audio features we analyze include:</p>
165
+ <div class="features-columns">
166
+ <div class="features-column">
167
+ <ul class="features-list-simple">
168
+ <li>Acousticness</li>
169
+ <li>Energy</li>
170
+ <li>Liveness</li>
171
+ <li>Speechiness</li>
172
+ <li>Valence</li>
173
+ </ul>
174
+ </div>
175
+ <div class="features-column">
176
+ <ul class="features-list-simple">
177
+ <li>Danceability</li>
178
+ <li>Instrumentalness</li>
179
+ <li>Loudness</li>
180
+ <li>Tempo</li>
181
+ </ul>
182
+ </div>
183
+ </div>
184
+ </div>
185
+ </div>
186
+ </div>
187
+ </main>
188
+ </div>
189
+
190
+ <!-- REMOVED: Music Player section completely -->
191
+
192
+ <!-- Loading Overlay -->
193
+ <div class="loading-overlay" id="loadingOverlay" style="display: none;">
194
+ <div class="loading-content">
195
+ <div class="loading-spinner"></div>
196
+ <p>Getting recommendations...</p>
197
+ </div>
198
+ </div>
199
+
200
+ <!-- Toast Notifications -->
201
+ <div class="toast-container" id="toastContainer"></div>
202
+ </div>
203
+
204
+ <!-- Hidden audio element for playing music -->
205
+ <audio id="audioPlayer" preload="metadata"></audio>
206
+
207
+ <script src="/script.js"></script>
208
+ <!-- OR use the static path: <script src="/static/script.js"></script> -->
209
+ </body>
210
  </html>