Add 2 files
Browse files- README.md +6 -4
- index.html +488 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: diffr
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,488 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>DiffRhythm - AI Music Generation</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
| 11 |
+
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Poppins', sans-serif;
|
| 14 |
+
background-color: #f8fafc;
|
| 15 |
+
color: #1e293b;
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
.gradient-bg {
|
| 19 |
+
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.music-wave {
|
| 23 |
+
position: relative;
|
| 24 |
+
height: 100px;
|
| 25 |
+
overflow: hidden;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.wave-bar {
|
| 29 |
+
position: absolute;
|
| 30 |
+
bottom: 0;
|
| 31 |
+
width: 4px;
|
| 32 |
+
background-color: rgba(255, 255, 255, 0.7);
|
| 33 |
+
animation: wave 1.5s infinite ease-in-out;
|
| 34 |
+
transform-origin: bottom;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
@keyframes wave {
|
| 38 |
+
0%, 100% {
|
| 39 |
+
transform: scaleY(0.3);
|
| 40 |
+
}
|
| 41 |
+
50% {
|
| 42 |
+
transform: scaleY(1);
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.song-card:hover {
|
| 47 |
+
transform: translateY(-5px);
|
| 48 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.progress-bar {
|
| 52 |
+
height: 4px;
|
| 53 |
+
background-color: #e2e8f0;
|
| 54 |
+
border-radius: 2px;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.progress-fill {
|
| 58 |
+
height: 100%;
|
| 59 |
+
background-color: #6366f1;
|
| 60 |
+
border-radius: 2px;
|
| 61 |
+
transition: width 0.3s ease;
|
| 62 |
+
}
|
| 63 |
+
</style>
|
| 64 |
+
</head>
|
| 65 |
+
<body>
|
| 66 |
+
<!-- Navigation -->
|
| 67 |
+
<nav class="gradient-bg text-white shadow-lg">
|
| 68 |
+
<div class="container mx-auto px-4 py-4">
|
| 69 |
+
<div class="flex justify-between items-center">
|
| 70 |
+
<div class="flex items-center space-x-2">
|
| 71 |
+
<i class="fas fa-music text-2xl"></i>
|
| 72 |
+
<span class="text-xl font-bold">DiffRhythm</span>
|
| 73 |
+
</div>
|
| 74 |
+
<div class="hidden md:flex space-x-6">
|
| 75 |
+
<a href="#features" class="hover:text-purple-200 transition">Features</a>
|
| 76 |
+
<a href="#technology" class="hover:text-purple-200 transition">Technology</a>
|
| 77 |
+
<a href="#demo" class="hover:text-purple-200 transition">Demo</a>
|
| 78 |
+
<a href="#resources" class="hover:text-purple-200 transition">Resources</a>
|
| 79 |
+
</div>
|
| 80 |
+
<button class="md:hidden text-xl">
|
| 81 |
+
<i class="fas fa-bars"></i>
|
| 82 |
+
</button>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
</nav>
|
| 86 |
+
|
| 87 |
+
<!-- Hero Section -->
|
| 88 |
+
<section class="gradient-bg text-white py-16">
|
| 89 |
+
<div class="container mx-auto px-4 flex flex-col md:flex-row items-center">
|
| 90 |
+
<div class="md:w-1/2 mb-10 md:mb-0">
|
| 91 |
+
<h1 class="text-4xl md:text-5xl font-bold mb-4">Revolutionizing Music Creation with AI</h1>
|
| 92 |
+
<p class="text-xl mb-8">Generate complete, professional-quality songs with synchronized vocals and instrumentals in just seconds.</p>
|
| 93 |
+
<div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
|
| 94 |
+
<button class="bg-white text-purple-600 px-6 py-3 rounded-lg font-semibold hover:bg-purple-100 transition">
|
| 95 |
+
<i class="fas fa-play mr-2"></i> Try Demo
|
| 96 |
+
</button>
|
| 97 |
+
<button class="border border-white text-white px-6 py-3 rounded-lg font-semibold hover:bg-white hover:bg-opacity-10 transition">
|
| 98 |
+
<i class="fab fa-github mr-2"></i> GitHub
|
| 99 |
+
</button>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
<div class="md:w-1/2 relative">
|
| 103 |
+
<div class="music-wave flex justify-center items-end h-40">
|
| 104 |
+
<!-- Dynamic wave bars will be inserted here by JavaScript -->
|
| 105 |
+
</div>
|
| 106 |
+
<div class="bg-white bg-opacity-10 backdrop-blur-lg rounded-xl p-6 mt-8 max-w-md mx-auto">
|
| 107 |
+
<div class="flex items-center mb-4">
|
| 108 |
+
<div class="w-12 h-12 bg-purple-200 rounded-lg flex items-center justify-center">
|
| 109 |
+
<i class="fas fa-music text-purple-600 text-xl"></i>
|
| 110 |
+
</div>
|
| 111 |
+
<div class="ml-4">
|
| 112 |
+
<h3 class="font-semibold">AI Generated Song</h3>
|
| 113 |
+
<p class="text-sm text-purple-200">DiffRhythm • 3:42</p>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="progress-bar mb-2">
|
| 117 |
+
<div class="progress-fill w-1/3"></div>
|
| 118 |
+
</div>
|
| 119 |
+
<div class="flex justify-between text-xs text-purple-200 mb-4">
|
| 120 |
+
<span>1:12</span>
|
| 121 |
+
<span>3:42</span>
|
| 122 |
+
</div>
|
| 123 |
+
<div class="flex justify-center space-x-6">
|
| 124 |
+
<button class="text-white hover:text-purple-200">
|
| 125 |
+
<i class="fas fa-step-backward text-xl"></i>
|
| 126 |
+
</button>
|
| 127 |
+
<button class="bg-white text-purple-600 w-10 h-10 rounded-full flex items-center justify-center hover:bg-purple-100">
|
| 128 |
+
<i class="fas fa-play"></i>
|
| 129 |
+
</button>
|
| 130 |
+
<button class="text-white hover:text-purple-200">
|
| 131 |
+
<i class="fas fa-step-forward text-xl"></i>
|
| 132 |
+
</button>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
</section>
|
| 138 |
+
|
| 139 |
+
<!-- Stats Section -->
|
| 140 |
+
<section class="bg-white py-12">
|
| 141 |
+
<div class="container mx-auto px-4">
|
| 142 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-8 text-center">
|
| 143 |
+
<div class="p-6 rounded-lg bg-gray-50">
|
| 144 |
+
<div class="text-3xl font-bold text-purple-600 mb-2">10s</div>
|
| 145 |
+
<div class="text-gray-600">Generation Time</div>
|
| 146 |
+
</div>
|
| 147 |
+
<div class="p-6 rounded-lg bg-gray-50">
|
| 148 |
+
<div class="text-3xl font-bold text-purple-600 mb-2">4:45</div>
|
| 149 |
+
<div class="text-gray-600">Max Song Length</div>
|
| 150 |
+
</div>
|
| 151 |
+
<div class="p-6 rounded-lg bg-gray-50">
|
| 152 |
+
<div class="text-3xl font-bold text-purple-600 mb-2">60k+</div>
|
| 153 |
+
<div class="text-gray-600">Training Hours</div>
|
| 154 |
+
</div>
|
| 155 |
+
<div class="p-6 rounded-lg bg-gray-50">
|
| 156 |
+
<div class="text-3xl font-bold text-purple-600 mb-2">2</div>
|
| 157 |
+
<div class="text-gray-600">Languages Supported</div>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</section>
|
| 162 |
+
|
| 163 |
+
<!-- Features Section -->
|
| 164 |
+
<section id="features" class="py-16 bg-gray-50">
|
| 165 |
+
<div class="container mx-auto px-4">
|
| 166 |
+
<h2 class="text-3xl font-bold text-center mb-12">Key Features</h2>
|
| 167 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 168 |
+
<div class="bg-white p-8 rounded-xl shadow-md hover:shadow-lg transition">
|
| 169 |
+
<div class="w-14 h-14 bg-purple-100 rounded-lg flex items-center justify-center mb-4">
|
| 170 |
+
<i class="fas fa-bolt text-purple-600 text-xl"></i>
|
| 171 |
+
</div>
|
| 172 |
+
<h3 class="text-xl font-semibold mb-2">Blazing Fast Generation</h3>
|
| 173 |
+
<p class="text-gray-600">Create complete songs up to 4 minutes and 45 seconds long in just 10 seconds, transforming the music creation process.</p>
|
| 174 |
+
</div>
|
| 175 |
+
<div class="bg-white p-8 rounded-xl shadow-md hover:shadow-lg transition">
|
| 176 |
+
<div class="w-14 h-14 bg-purple-100 rounded-lg flex items-center justify-center mb-4">
|
| 177 |
+
<i class="fas fa-globe text-purple-600 text-xl"></i>
|
| 178 |
+
</div>
|
| 179 |
+
<h3 class="text-xl font-semibold mb-2">Multi-Language Support</h3>
|
| 180 |
+
<p class="text-gray-600">Generate songs in both English and Chinese with natural pronunciation and appropriate musical styling.</p>
|
| 181 |
+
</div>
|
| 182 |
+
<div class="bg-white p-8 rounded-xl shadow-md hover:shadow-lg transition">
|
| 183 |
+
<div class="w-14 h-14 bg-purple-100 rounded-lg flex items-center justify-center mb-4">
|
| 184 |
+
<i class="fas fa-star text-purple-600 text-xl"></i>
|
| 185 |
+
</div>
|
| 186 |
+
<h3 class="text-xl font-semibold mb-2">Professional Quality</h3>
|
| 187 |
+
<p class="text-gray-600">High-quality output with perfect synchronization between vocals and accompaniment, maintaining musical coherence.</p>
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
</section>
|
| 192 |
+
|
| 193 |
+
<!-- Technology Section -->
|
| 194 |
+
<section id="technology" class="py-16 bg-white">
|
| 195 |
+
<div class="container mx-auto px-4">
|
| 196 |
+
<h2 class="text-3xl font-bold text-center mb-12">Technical Innovation</h2>
|
| 197 |
+
<div class="flex flex-col md:flex-row items-center">
|
| 198 |
+
<div class="md:w-1/2 mb-8 md:mb-0">
|
| 199 |
+
<img src="https://via.placeholder.com/600x400" alt="DiffRhythm Architecture" class="rounded-lg shadow-lg w-full">
|
| 200 |
+
</div>
|
| 201 |
+
<div class="md:w-1/2 md:pl-12">
|
| 202 |
+
<div class="mb-8">
|
| 203 |
+
<h3 class="text-xl font-semibold mb-2 flex items-center">
|
| 204 |
+
<span class="w-8 h-8 bg-purple-600 text-white rounded-full flex items-center justify-center mr-3">1</span>
|
| 205 |
+
Latent Diffusion Approach
|
| 206 |
+
</h3>
|
| 207 |
+
<p class="text-gray-600">Utilizes a non-autoregressive structure for parallel audio content generation, significantly faster than language model-based methods.</p>
|
| 208 |
+
</div>
|
| 209 |
+
<div class="mb-8">
|
| 210 |
+
<h3 class="text-xl font-semibold mb-2 flex items-center">
|
| 211 |
+
<span class="w-8 h-8 bg-purple-600 text-white rounded-full flex items-center justify-center mr-3">2</span>
|
| 212 |
+
Two-Stage Architecture
|
| 213 |
+
</h3>
|
| 214 |
+
<p class="text-gray-600">Combines a Variational Autoencoder (VAE) for compact latent representations and a Diffusion Transformer (DiT) for song generation through iterative denoising.</p>
|
| 215 |
+
</div>
|
| 216 |
+
<div>
|
| 217 |
+
<h3 class="text-xl font-semibold mb-2 flex items-center">
|
| 218 |
+
<span class="w-8 h-8 bg-purple-600 text-white rounded-full flex items-center justify-center mr-3">3</span>
|
| 219 |
+
Lyrics Alignment
|
| 220 |
+
</h3>
|
| 221 |
+
<p class="text-gray-600">Novel mechanism ensures semantic correspondence between lyrics and vocals, maintaining high intelligibility in the final output.</p>
|
| 222 |
+
</div>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
</div>
|
| 226 |
+
</section>
|
| 227 |
+
|
| 228 |
+
<!-- Demo Section -->
|
| 229 |
+
<section id="demo" class="py-16 gradient-bg text-white">
|
| 230 |
+
<div class="container mx-auto px-4">
|
| 231 |
+
<h2 class="text-3xl font-bold text-center mb-12">Experience DiffRhythm</h2>
|
| 232 |
+
<div class="max-w-4xl mx-auto bg-white bg-opacity-10 backdrop-blur-lg rounded-xl p-8">
|
| 233 |
+
<div class="grid md:grid-cols-2 gap-8">
|
| 234 |
+
<div>
|
| 235 |
+
<h3 class="text-xl font-semibold mb-4">Generate Your Song</h3>
|
| 236 |
+
<div class="mb-4">
|
| 237 |
+
<label class="block text-purple-200 mb-2">Song Style</label>
|
| 238 |
+
<select class="w-full bg-white bg-opacity-20 border border-white border-opacity-30 rounded-lg px-4 py-2 text-white">
|
| 239 |
+
<option>Pop</option>
|
| 240 |
+
<option>Rock</option>
|
| 241 |
+
<option>Hip Hop</option>
|
| 242 |
+
<option>Electronic</option>
|
| 243 |
+
<option>R&B</option>
|
| 244 |
+
</select>
|
| 245 |
+
</div>
|
| 246 |
+
<div class="mb-4">
|
| 247 |
+
<label class="block text-purple-200 mb-2">Language</label>
|
| 248 |
+
<div class="flex space-x-4">
|
| 249 |
+
<button class="px-4 py-2 bg-white text-purple-600 rounded-lg font-medium">English</button>
|
| 250 |
+
<button class="px-4 py-2 bg-white bg-opacity-10 text-white rounded-lg font-medium">Chinese</button>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
<div class="mb-4">
|
| 254 |
+
<label class="block text-purple-200 mb-2">Song Length</label>
|
| 255 |
+
<input type="range" min="30" max="285" value="180" class="w-full">
|
| 256 |
+
<div class="flex justify-between text-sm text-purple-200">
|
| 257 |
+
<span>30s</span>
|
| 258 |
+
<span>3:00</span>
|
| 259 |
+
<span>4:45</span>
|
| 260 |
+
</div>
|
| 261 |
+
</div>
|
| 262 |
+
</div>
|
| 263 |
+
<div>
|
| 264 |
+
<label class="block text-purple-200 mb-2">Enter Lyrics</label>
|
| 265 |
+
<textarea class="w-full h-40 bg-white bg-opacity-20 border border-white border-opacity-30 rounded-lg px-4 py-2 text-white" placeholder="Type your lyrics here..."></textarea>
|
| 266 |
+
<button class="w-full mt-4 bg-white text-purple-600 px-6 py-3 rounded-lg font-semibold hover:bg-purple-100 transition">
|
| 267 |
+
Generate Song
|
| 268 |
+
</button>
|
| 269 |
+
</div>
|
| 270 |
+
</div>
|
| 271 |
+
</div>
|
| 272 |
+
</div>
|
| 273 |
+
</section>
|
| 274 |
+
|
| 275 |
+
<!-- Sample Songs -->
|
| 276 |
+
<section class="py-16 bg-gray-50">
|
| 277 |
+
<div class="container mx-auto px-4">
|
| 278 |
+
<h2 class="text-3xl font-bold text-center mb-12">Sample Songs</h2>
|
| 279 |
+
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 280 |
+
<div class="song-card bg-white p-6 rounded-xl shadow-md transition duration-300">
|
| 281 |
+
<div class="flex items-center mb-4">
|
| 282 |
+
<div class="w-16 h-16 bg-purple-100 rounded-lg flex items-center justify-center">
|
| 283 |
+
<i class="fas fa-music text-purple-600 text-2xl"></i>
|
| 284 |
+
</div>
|
| 285 |
+
<div class="ml-4">
|
| 286 |
+
<h3 class="font-semibold">Summer Breeze</h3>
|
| 287 |
+
<p class="text-sm text-gray-500">Pop • English • 3:12</p>
|
| 288 |
+
</div>
|
| 289 |
+
</div>
|
| 290 |
+
<div class="progress-bar mb-2">
|
| 291 |
+
<div class="progress-fill w-1/4"></div>
|
| 292 |
+
</div>
|
| 293 |
+
<div class="flex justify-between text-xs text-gray-500 mb-4">
|
| 294 |
+
<span>0:48</span>
|
| 295 |
+
<span>3:12</span>
|
| 296 |
+
</div>
|
| 297 |
+
<div class="flex justify-center space-x-6">
|
| 298 |
+
<button class="text-gray-600 hover:text-purple-600">
|
| 299 |
+
<i class="fas fa-play"></i>
|
| 300 |
+
</button>
|
| 301 |
+
</div>
|
| 302 |
+
</div>
|
| 303 |
+
<div class="song-card bg-white p-6 rounded-xl shadow-md transition duration-300">
|
| 304 |
+
<div class="flex items-center mb-4">
|
| 305 |
+
<div class="w-16 h-16 bg-purple-100 rounded-lg flex items-center justify-center">
|
| 306 |
+
<i class="fas fa-music text-purple-600 text-2xl"></i>
|
| 307 |
+
</div>
|
| 308 |
+
<div class="ml-4">
|
| 309 |
+
<h3 class="font-semibold">城市之光</h3>
|
| 310 |
+
<p class="text-sm text-gray-500">R&B • Chinese • 2:56</p>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
<div class="progress-bar mb-2">
|
| 314 |
+
<div class="progress-fill w-2/3"></div>
|
| 315 |
+
</div>
|
| 316 |
+
<div class="flex justify-between text-xs text-gray-500 mb-4">
|
| 317 |
+
<span>1:56</span>
|
| 318 |
+
<span>2:56</span>
|
| 319 |
+
</div>
|
| 320 |
+
<div class="flex justify-center space-x-6">
|
| 321 |
+
<button class="text-gray-600 hover:text-purple-600">
|
| 322 |
+
<i class="fas fa-play"></i>
|
| 323 |
+
</button>
|
| 324 |
+
</div>
|
| 325 |
+
</div>
|
| 326 |
+
<div class="song-card bg-white p-6 rounded-xl shadow-md transition duration-300">
|
| 327 |
+
<div class="flex items-center mb-4">
|
| 328 |
+
<div class="w-16 h-16 bg-purple-100 rounded-lg flex items-center justify-center">
|
| 329 |
+
<i class="fas fa-music text-purple-600 text-2xl"></i>
|
| 330 |
+
</div>
|
| 331 |
+
<div class="ml-4">
|
| 332 |
+
<h3 class="font-semibold">Digital Dreams</h3>
|
| 333 |
+
<p class="text-sm text-gray-500">Electronic • English • 4:18</p>
|
| 334 |
+
</div>
|
| 335 |
+
</div>
|
| 336 |
+
<div class="progress-bar mb-2">
|
| 337 |
+
<div class="progress-fill w-1/2"></div>
|
| 338 |
+
</div>
|
| 339 |
+
<div class="flex justify-between text-xs text-gray-500 mb-4">
|
| 340 |
+
<span>2:09</span>
|
| 341 |
+
<span>4:18</span>
|
| 342 |
+
</div>
|
| 343 |
+
<div class="flex justify-center space-x-6">
|
| 344 |
+
<button class="text-gray-600 hover:text-purple-600">
|
| 345 |
+
<i class="fas fa-play"></i>
|
| 346 |
+
</button>
|
| 347 |
+
</div>
|
| 348 |
+
</div>
|
| 349 |
+
</div>
|
| 350 |
+
</div>
|
| 351 |
+
</section>
|
| 352 |
+
|
| 353 |
+
<!-- Resources Section -->
|
| 354 |
+
<section id="resources" class="py-16 bg-white">
|
| 355 |
+
<div class="container mx-auto px-4">
|
| 356 |
+
<h2 class="text-3xl font-bold text-center mb-12">Resources</h2>
|
| 357 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 358 |
+
<a href="#" class="resource-card bg-gray-50 p-6 rounded-xl shadow-md hover:shadow-lg transition group">
|
| 359 |
+
<div class="w-14 h-14 bg-purple-100 rounded-lg flex items-center justify-center mb-4 group-hover:bg-purple-200 transition">
|
| 360 |
+
<i class="fas fa-file-alt text-purple-600 text-xl"></i>
|
| 361 |
+
</div>
|
| 362 |
+
<h3 class="text-xl font-semibold mb-2 group-hover:text-purple-600 transition">Research Paper</h3>
|
| 363 |
+
<p class="text-gray-600">Read the full technical paper detailing DiffRhythm's architecture and performance.</p>
|
| 364 |
+
</a>
|
| 365 |
+
<a href="#" class="resource-card bg-gray-50 p-6 rounded-xl shadow-md hover:shadow-lg transition group">
|
| 366 |
+
<div class="w-14 h-14 bg-purple-100 rounded-lg flex items-center justify-center mb-4 group-hover:bg-purple-200 transition">
|
| 367 |
+
<i class="fab fa-github text-purple-600 text-xl"></i>
|
| 368 |
+
</div>
|
| 369 |
+
<h3 class="text-xl font-semibold mb-2 group-hover:text-purple-600 transition">GitHub Repository</h3>
|
| 370 |
+
<p class="text-gray-600">Access the open-source code and contribute to the project's development.</p>
|
| 371 |
+
</a>
|
| 372 |
+
<a href="#" class="resource-card bg-gray-50 p-6 rounded-xl shadow-md hover:shadow-lg transition group">
|
| 373 |
+
<div class="w-14 h-14 bg-purple-100 rounded-lg flex items-center justify-center mb-4 group-hover:bg-purple-200 transition">
|
| 374 |
+
<i class="fas fa-hands-helping text-purple-600 text-xl"></i>
|
| 375 |
+
</div>
|
| 376 |
+
<h3 class="text-xl font-semibold mb-2 group-hover:text-purple-600 transition">Hugging Face</h3>
|
| 377 |
+
<p class="text-gray-600">Try the model directly on Hugging Face's platform with easy-to-use interfaces.</p>
|
| 378 |
+
</a>
|
| 379 |
+
</div>
|
| 380 |
+
</div>
|
| 381 |
+
</section>
|
| 382 |
+
|
| 383 |
+
<!-- Footer -->
|
| 384 |
+
<footer class="bg-gray-900 text-white py-12">
|
| 385 |
+
<div class="container mx-auto px-4">
|
| 386 |
+
<div class="grid md:grid-cols-4 gap-8">
|
| 387 |
+
<div>
|
| 388 |
+
<div class="flex items-center space-x-2 mb-4">
|
| 389 |
+
<i class="fas fa-music text-2xl"></i>
|
| 390 |
+
<span class="text-xl font-bold">DiffRhythm</span>
|
| 391 |
+
</div>
|
| 392 |
+
<p class="text-gray-400">Revolutionizing music creation through AI innovation.</p>
|
| 393 |
+
</div>
|
| 394 |
+
<div>
|
| 395 |
+
<h3 class="text-lg font-semibold mb-4">Navigation</h3>
|
| 396 |
+
<ul class="space-y-2">
|
| 397 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Home</a></li>
|
| 398 |
+
<li><a href="#features" class="text-gray-400 hover:text-white transition">Features</a></li>
|
| 399 |
+
<li><a href="#technology" class="text-gray-400 hover:text-white transition">Technology</a></li>
|
| 400 |
+
<li><a href="#demo" class="text-gray-400 hover:text-white transition">Demo</a></li>
|
| 401 |
+
</ul>
|
| 402 |
+
</div>
|
| 403 |
+
<div>
|
| 404 |
+
<h3 class="text-lg font-semibold mb-4">Resources</h3>
|
| 405 |
+
<ul class="space-y-2">
|
| 406 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Research Paper</a></li>
|
| 407 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">GitHub</a></li>
|
| 408 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Hugging Face</a></li>
|
| 409 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Documentation</a></li>
|
| 410 |
+
</ul>
|
| 411 |
+
</div>
|
| 412 |
+
<div>
|
| 413 |
+
<h3 class="text-lg font-semibold mb-4">Connect</h3>
|
| 414 |
+
<div class="flex space-x-4">
|
| 415 |
+
<a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-purple-600 transition">
|
| 416 |
+
<i class="fab fa-twitter"></i>
|
| 417 |
+
</a>
|
| 418 |
+
<a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-purple-600 transition">
|
| 419 |
+
<i class="fab fa-github"></i>
|
| 420 |
+
</a>
|
| 421 |
+
<a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-purple-600 transition">
|
| 422 |
+
<i class="fab fa-discord"></i>
|
| 423 |
+
</a>
|
| 424 |
+
<a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-purple-600 transition">
|
| 425 |
+
<i class="fab fa-youtube"></i>
|
| 426 |
+
</a>
|
| 427 |
+
</div>
|
| 428 |
+
</div>
|
| 429 |
+
</div>
|
| 430 |
+
<div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400">
|
| 431 |
+
<p>© 2024 DiffRhythm by ASLP@NPU. All rights reserved.</p>
|
| 432 |
+
</div>
|
| 433 |
+
</div>
|
| 434 |
+
</footer>
|
| 435 |
+
|
| 436 |
+
<script>
|
| 437 |
+
// Create music wave animation
|
| 438 |
+
const musicWave = document.querySelector('.music-wave');
|
| 439 |
+
for (let i = 0; i < 20; i++) {
|
| 440 |
+
const bar = document.createElement('div');
|
| 441 |
+
bar.className = 'wave-bar';
|
| 442 |
+
bar.style.left = `${i * 8}px`;
|
| 443 |
+
bar.style.height = `${Math.random() * 60 + 20}px`;
|
| 444 |
+
bar.style.animationDelay = `${Math.random() * 0.5}s`;
|
| 445 |
+
musicWave.appendChild(bar);
|
| 446 |
+
}
|
| 447 |
+
|
| 448 |
+
// Simulate progress bar movement
|
| 449 |
+
setInterval(() => {
|
| 450 |
+
const progressFill = document.querySelector('.progress-fill');
|
| 451 |
+
const currentWidth = parseFloat(progressFill.style.width || '0%');
|
| 452 |
+
const newWidth = currentWidth + 0.5;
|
| 453 |
+
if (newWidth <= 100) {
|
| 454 |
+
progressFill.style.width = `${newWidth}%`;
|
| 455 |
+
} else {
|
| 456 |
+
progressFill.style.width = '0%';
|
| 457 |
+
}
|
| 458 |
+
}, 1000);
|
| 459 |
+
|
| 460 |
+
// Song card hover effect
|
| 461 |
+
const songCards = document.querySelectorAll('.song-card');
|
| 462 |
+
songCards.forEach(card => {
|
| 463 |
+
card.addEventListener('mouseenter', () => {
|
| 464 |
+
card.style.transform = 'translateY(-5px)';
|
| 465 |
+
card.style.boxShadow = '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)';
|
| 466 |
+
});
|
| 467 |
+
card.addEventListener('mouseleave', () => {
|
| 468 |
+
card.style.transform = '';
|
| 469 |
+
card.style.boxShadow = '';
|
| 470 |
+
});
|
| 471 |
+
});
|
| 472 |
+
|
| 473 |
+
// Language toggle buttons
|
| 474 |
+
const languageButtons = document.querySelectorAll('#demo button');
|
| 475 |
+
languageButtons.forEach(button => {
|
| 476 |
+
button.addEventListener('click', (e) => {
|
| 477 |
+
e.preventDefault();
|
| 478 |
+
languageButtons.forEach(btn => {
|
| 479 |
+
btn.classList.remove('bg-white', 'text-purple-600');
|
| 480 |
+
btn.classList.add('bg-white', 'bg-opacity-10', 'text-white');
|
| 481 |
+
});
|
| 482 |
+
button.classList.remove('bg-white', 'bg-opacity-10', 'text-white');
|
| 483 |
+
button.classList.add('bg-white', 'text-purple-600');
|
| 484 |
+
});
|
| 485 |
+
});
|
| 486 |
+
</script>
|
| 487 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=batnyan/diffr" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 488 |
+
</html>
|