whisper-qwen-3-coder / index.html
akhaliq's picture
akhaliq HF Staff
Upload index.html with huggingface_hub
ecd5b97 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Speech Transcription with Transformers.js</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<h1>Speech Transcription</h1>
<p>Transcribe audio files using AI-powered Transformers.js</p>
</header>
<main>
<div class="upload-section">
<div class="file-input-wrapper">
<input type="file" id="audio-file" accept="audio/*">
<label for="audio-file" class="file-label">
<div class="file-label-content">
<span class="upload-icon">πŸ“</span>
<span>Choose an audio file or drag it here</span>
</div>
</label>
</div>
<div class="url-input">
<input type="url" id="audio-url" placeholder="Or enter audio URL">
<button id="load-url">Load</button>
</div>
<div class="sample-audio">
<button id="sample-btn">Use Sample Audio</button>
</div>
</div>
<div class="controls">
<button id="transcribe-btn" disabled>Transcribe Audio</button>
<div class="options">
<label>
<input type="checkbox" id="timestamps"> Include timestamps
</label>
<label>
<input type="checkbox" id="word-timestamps"> Word-level timestamps
</label>
</div>
</div>
<div class="progress-container" id="progress-container" style="display: none;">
<div class="progress-bar">
<div class="progress-fill" id="progress-fill"></div>
</div>
<div class="progress-text" id="progress-text">Loading model...</div>
</div>
<div class="result-section" id="result-section" style="display: none;">
<h2>Transcription Result</h2>
<div class="transcription-text" id="transcription-text"></div>
<div class="chunks-container" id="chunks-container"></div>
<button id="copy-btn">Copy Text</button>
</div>
</main>
<footer>
<p>Powered by <a href="https://huggingface.co/docs/transformers.js" target="_blank">Transformers.js</a></p>
</footer>
</div>
<script src="index.js"></script>
</body>
</html>