Spaces:
Running
Running
File size: 18,256 Bytes
1272c82 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Anzers: Whisper Core</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
background-color: #0a0a0a;
color: #e5e5e5;
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
}
.glow-effect {
box-shadow: 0 0 15px rgba(56, 182, 255, 0.5);
}
.glow-text {
text-shadow: 0 0 8px rgba(56, 182, 255, 0.7);
}
.sidebar-item:hover {
background-color: rgba(56, 182, 255, 0.1);
border-left: 3px solid #38b6ff;
}
.progress-bar {
background: linear-gradient(90deg, #38b6ff 0%, #1e40af 100%);
animation: progressAnimation 2s ease-in-out infinite;
background-size: 200% 100%;
}
@keyframes progressAnimation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.dropzone {
border: 2px dashed #38b6ff;
background-color: rgba(56, 182, 255, 0.05);
transition: all 0.3s ease;
}
.dropzone.active {
background-color: rgba(56, 182, 255, 0.15);
border-color: #38b6ff;
}
.macos-window {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.macos-title-bar {
background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
height: 28px;
}
.macos-traffic-lights {
display: flex;
gap: 8px;
padding-left: 12px;
}
.traffic-light {
width: 12px;
height: 12px;
border-radius: 50%;
}
.close { background-color: #ff5f56; }
.minimize { background-color: #ffbd2e; }
.maximize { background-color: #27c93f; }
.code-block {
background-color: #1a1a1a;
font-family: 'Courier New', monospace;
color: #38b6ff;
}
.transcription-text {
background-color: #121212;
border-left: 3px solid #38b6ff;
}
</style>
</head>
<body class="flex items-center justify-center p-8">
<div class="macos-window w-full max-w-6xl h-[90vh] flex overflow-hidden">
<!-- Sidebar -->
<div class="w-64 bg-gray-900 border-r border-gray-800 flex flex-col">
<div class="p-4 border-b border-gray-800">
<h1 class="text-xl font-bold glow-text text-blue-400">Anzers Suite</h1>
<p class="text-xs text-gray-400 mt-1">Whisper Core v1.0.0</p>
</div>
<div class="flex-1 overflow-y-auto">
<div class="p-2">
<div class="sidebar-item p-3 rounded-md cursor-pointer flex items-center space-x-3 text-blue-400">
<i class="fas fa-microphone"></i>
<span>Whisper Core</span>
</div>
<div class="sidebar-item p-3 rounded-md cursor-pointer flex items-center space-x-3 text-gray-400 hover:text-blue-400">
<i class="fas fa-robot"></i>
<span>AI Assistant (Coming Soon)</span>
</div>
<div class="sidebar-item p-3 rounded-md cursor-pointer flex items-center space-x-3 text-gray-400 hover:text-blue-400">
<i class="fas fa-video"></i>
<span>Video Editor (Coming Soon)</span>
</div>
<div class="sidebar-item p-3 rounded-md cursor-pointer flex items-center space-x-3 text-gray-400 hover:text-blue-400">
<i class="fas fa-file-audio"></i>
<span>Audio Tools (Coming Soon)</span>
</div>
</div>
<div class="p-4 border-t border-gray-800 mt-auto">
<div class="text-xs text-gray-400 mb-2">System Status</div>
<div class="space-y-2">
<div class="flex justify-between text-xs">
<span>CPU Usage</span>
<span class="text-blue-400">12%</span>
</div>
<div class="h-1 w-full bg-gray-800 rounded-full">
<div class="h-1 bg-blue-500 rounded-full" style="width: 12%"></div>
</div>
<div class="flex justify-between text-xs mt-2">
<span>Memory</span>
<span class="text-blue-400">3.2/16GB</span>
</div>
<div class="h-1 w-full bg-gray-800 rounded-full">
<div class="h-1 bg-blue-500 rounded-full" style="width: 20%"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col bg-gray-950">
<!-- Title Bar -->
<div class="macos-title-bar flex items-center justify-between px-4">
<div class="macos-traffic-lights">
<div class="traffic-light close"></div>
<div class="traffic-light minimize"></div>
<div class="traffic-light maximize"></div>
</div>
<div class="text-xs text-gray-400">Anzers: Whisper Core</div>
<div class="w-12"></div> <!-- Spacer -->
</div>
<!-- Content Area -->
<div class="flex-1 overflow-hidden flex flex-col p-6">
<h2 class="text-2xl font-bold mb-6 text-blue-400">Audio Transcription</h2>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 flex-1 overflow-hidden">
<!-- Left Column -->
<div class="space-y-6 col-span-1">
<div class="bg-gray-900 rounded-xl p-5 shadow-lg">
<h3 class="font-medium mb-4 text-blue-400">Input Settings</h3>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium mb-1">Whisper Model</label>
<select class="w-full bg-gray-800 border border-gray-700 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
<option value="tiny">Tiny (Fastest, lowest accuracy)</option>
<option value="base">Base</option>
<option value="small" selected>Small (Recommended)</option>
<option value="medium">Medium</option>
<option value="large">Large (Slowest, highest accuracy)</option>
</select>
</div>
<div>
<label class="block text-sm font-medium mb-1">Language</label>
<select class="w-full bg-gray-800 border border-gray-700 rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
<option value="auto" selected>Auto-detect</option>
<option value="en">English</option>
<option value="es">Spanish</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="ja">Japanese</option>
<!-- More languages would be here -->
</select>
</div>
<div class="pt-2">
<label class="flex items-center space-x-2">
<input type="checkbox" class="form-checkbox h-4 w-4 text-blue-500 bg-gray-800 border-gray-700 rounded focus:ring-blue-500">
<span class="text-sm">Include timestamps</span>
</label>
</div>
</div>
</div>
<div class="bg-gray-900 rounded-xl p-5 shadow-lg">
<h3 class="font-medium mb-4 text-blue-400">Output Format</h3>
<div class="space-y-3">
<label class="flex items-center space-x-3 p-2 rounded hover:bg-gray-800 cursor-pointer">
<input type="radio" name="output-format" class="form-radio h-4 w-4 text-blue-500" checked>
<span class="text-sm">Plain Text (.txt)</span>
</label>
<label class="flex items-center space-x-3 p-2 rounded hover:bg-gray-800 cursor-pointer">
<input type="radio" name="output-format" class="form-radio h-4 w-4 text-blue-500">
<span class="text-sm">SubRip (.srt)</span>
</label>
<label class="flex items-center space-x-3 p-2 rounded hover:bg-gray-800 cursor-pointer">
<input type="radio" name="output-format" class="form-radio h-4 w-4 text-blue-500">
<span class="text-sm">JSON (.json)</span>
</label>
</div>
</div>
</div>
<!-- Middle Column -->
<div class="col-span-1 lg:col-span-2 flex flex-col space-y-6">
<div id="dropzone" class="dropzone rounded-xl p-8 flex-1 flex flex-col items-center justify-center text-center cursor-pointer transition-all">
<i class="fas fa-cloud-upload-alt text-4xl text-blue-400 mb-4"></i>
<h3 class="text-lg font-medium mb-1">Drag & Drop Audio/Video Files</h3>
<p class="text-sm text-gray-400 mb-4">or click to browse files</p>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors">
Select Files
</button>
<input type="file" id="fileInput" class="hidden" accept="audio/*,video/*">
</div>
<div class="bg-gray-900 rounded-xl p-5 shadow-lg">
<h3 class="font-medium mb-4 text-blue-400">Transcription Progress</h3>
<div id="progressContainer" class="hidden">
<div class="flex justify-between text-sm mb-1">
<span>Processing...</span>
<span id="progressPercent">0%</span>
</div>
<div class="h-2 w-full bg-gray-800 rounded-full overflow-hidden">
<div id="progressBar" class="progress-bar h-full rounded-full" style="width: 0%"></div>
</div>
<div class="text-xs text-gray-400 mt-2" id="progressStatus">Initializing Whisper model...</div>
</div>
<div id="idleState" class="text-center py-4 text-gray-400">
<i class="fas fa-microphone-alt text-2xl mb-2"></i>
<p>No file selected for transcription</p>
</div>
</div>
</div>
</div>
</div>
<!-- Status Bar -->
<div class="bg-gray-900 border-t border-gray-800 px-4 py-2 text-xs flex justify-between items-center">
<div class="text-gray-400">
<span id="statusMessage">Ready</span>
</div>
<div class="flex space-x-4">
<span class="text-blue-400">CPU: 12%</span>
<span class="text-blue-400">MEM: 3.2GB</span>
<span class="text-gray-400">Whisper v3</span>
</div>
</div>
</div>
</div>
<script>
// Dropzone functionality
const dropzone = document.getElementById('dropzone');
const fileInput = document.getElementById('fileInput');
const progressContainer = document.getElementById('progressContainer');
const progressBar = document.getElementById('progressBar');
const progressPercent = document.getElementById('progressPercent');
const progressStatus = document.getElementById('progressStatus');
const idleState = document.getElementById('idleState');
const statusMessage = document.getElementById('statusMessage');
// Handle drag and drop
dropzone.addEventListener('dragover', (e) => {
e.preventDefault();
dropzone.classList.add('active');
});
dropzone.addEventListener('dragleave', () => {
dropzone.classList.remove('active');
});
dropzone.addEventListener('drop', (e) => {
e.preventDefault();
dropzone.classList.remove('active');
if (e.dataTransfer.files.length) {
handleFiles(e.dataTransfer.files);
}
});
// Handle file selection
dropzone.addEventListener('click', () => {
fileInput.click();
});
fileInput.addEventListener('change', () => {
if (fileInput.files.length) {
handleFiles(fileInput.files);
}
});
// Simulate file processing
function handleFiles(files) {
const file = files[0];
statusMessage.textContent = `Processing: ${file.name}`;
idleState.classList.add('hidden');
progressContainer.classList.remove('hidden');
// Simulate transcription progress
let progress = 0;
const interval = setInterval(() => {
progress += Math.random() * 5;
if (progress > 100) progress = 100;
progressBar.style.width = `${progress}%`;
progressPercent.textContent = `${Math.floor(progress)}%`;
if (progress < 30) {
progressStatus.textContent = "Loading Whisper model...";
} else if (progress < 70) {
progressStatus.textContent = "Transcribing audio...";
} else {
progressStatus.textContent = "Finalizing transcription...";
}
if (progress === 100) {
clearInterval(interval);
setTimeout(() => {
statusMessage.textContent = `Transcription complete: ${file.name}`;
progressStatus.textContent = "Done! Transcription ready.";
// Show success message
alert(`Transcription complete!\n\nFile: ${file.name}\nModel: Small\nDuration: 2m 45s`);
}, 500);
}
}, 300);
}
// Simulate system status updates
setInterval(() => {
const cpu = Math.floor(Math.random() * 15) + 5;
const mem = (Math.random() * 0.5 + 3).toFixed(1);
document.querySelectorAll('.text-blue-400').forEach(el => {
if (el.textContent.includes('CPU')) el.textContent = `CPU: ${cpu}%`;
if (el.textContent.includes('MEM')) el.textContent = `MEM: ${mem}GB`;
});
}, 3000);
</script>
<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=MagicBullets/deepsite-test" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
</html> |