Download web/index.html from giangpvg/SER: direct link, hf CLI and curl.
- Browser
- Download file 7.27 kB
-
https://huggingface.co/spaces/giangpvg/SER/resolve/main/web/index.html
- Command line
-
hf download hf://spaces/giangpvg/SER/web/index.html
-
curl -L -o index.html https://huggingface.co/spaces/giangpvg/SER/resolve/main/web/index.html
7.27 kB
| <html lang="vi"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Nhận Diện Cảm Xúc Giọng Nói | UniRepLKNet SER</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet"> | |
| <link rel="stylesheet" href="/static/style.css?v=2.1"> | |
| </head> | |
| <body class="light-theme"> | |
| <!-- Minimalist Header --> | |
| <header class="navbar"> | |
| <div class="nav-container"> | |
| <div class="nav-brand"> | |
| <div class="brand-badge"> | |
| <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"> | |
| <path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/> | |
| <path d="M19 10v2a7 7 0 0 1-14 0v-2"/> | |
| <line x1="12" y1="19" x2="12" y2="22"/> | |
| </svg> | |
| </div> | |
| <div class="brand-text"> | |
| <h1 class="brand-title">UniRepLKNet <span class="highlight">SER</span></h1> | |
| <p class="brand-subtitle">Phân loại cảm xúc giọng nói bằng mạng DINOv3 ViT + UniRepLKNet Backbone</p> | |
| </div> | |
| </div> | |
| <div class="nav-actions"> | |
| <div class="chip-status" id="chipStatus"> | |
| <span class="status-indicator"></span> | |
| <span id="statusText">Sẵn sàng phân tích</span> | |
| </div> | |
| <button id="btnThemeToggle" class="theme-toggle-btn" title="Chuyển chế độ sáng/tối"> | |
| <span class="theme-icon" id="themeIcon">🌙</span> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content Container --> | |
| <main class="app-container"> | |
| <!-- HERO INPUT CARD --> | |
| <section class="card input-card"> | |
| <div class="tabs-nav" role="tablist"> | |
| <button class="tab-btn active" data-tab="mic" id="tabMic"> | |
| <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/></svg> | |
| Ghi âm giọng nói | |
| </button> | |
| <button class="tab-btn" data-tab="upload" id="tabUpload"> | |
| <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg> | |
| Tải file âm thanh | |
| </button> | |
| </div> | |
| <!-- Tab Content: Microphone --> | |
| <div class="tab-pane active" id="paneMic"> | |
| <div class="mic-recorder-wrapper"> | |
| <div class="record-button-box"> | |
| <button id="btnRecord" class="record-btn" aria-label="Ghi âm"> | |
| <span class="record-circle"></span> | |
| <span class="record-ring"></span> | |
| </button> | |
| </div> | |
| <div class="record-info"> | |
| <div class="record-timer font-mono" id="recordTimer">00:00.0</div> | |
| <div class="record-instruction" id="recordStatusLabel">Nhấn nút tròn để bắt đầu nói (khuyên dùng 2-4 giây)</div> | |
| <div class="mic-meter-wrapper"> | |
| <div class="mic-meter-fill" id="micLevelFill"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Tab Content: Upload --> | |
| <div class="tab-pane" id="paneUpload"> | |
| <div class="dropzone" id="dropzone"> | |
| <input type="file" id="fileInput" accept="audio/*" class="file-input"> | |
| <div class="dropzone-icon"> | |
| <svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"/><path d="M12 12v9"/><path d="m16 16-4-4-4 4"/></svg> | |
| </div> | |
| <div class="dropzone-text"> | |
| <strong>Kéo thả file âm thanh</strong> hoặc <span class="link-text">bấm để chọn file</span> | |
| </div> | |
| <div class="dropzone-note">Hỗ trợ .wav, .mp3, .flac, .m4a (chuẩn hóa về 16kHz)</div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- TWO-COLUMN WORKSPACE: LEFT IS AUDIO/SPECTROGRAM, RIGHT IS EMOTION RESULTS --> | |
| <div class="content-grid"> | |
| <!-- LEFT COLUMN: AUDIO WAVEFORM TIMELINE --> | |
| <div class="left-col"> | |
| <!-- Interactive Waveform Timeline Card --> | |
| <div class="card waveform-card"> | |
| <div class="card-title-row"> | |
| <h2 class="card-heading"> | |
| <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"> | |
| <path d="M2 10v4M6 6v12M10 3v18M14 7v10M18 5v14M22 10v4"/> | |
| </svg> | |
| Dạng Sóng Âm Thanh (Audio Waveform) | |
| </h2> | |
| <div class="audio-controls"> | |
| <button id="btnPlayPause" class="btn-play" disabled title="Phát âm thanh"> | |
| <span id="playIcon">▶</span> | |
| <span id="pauseIcon" style="display:none;">⏸</span> | |
| </button> | |
| <span class="timer-tag font-mono" id="playbackTimer">00:00 / 00:00</span> | |
| </div> | |
| </div> | |
| <div class="waveform-box" id="waveformBox"> | |
| <canvas id="waveformCanvas" width="700" height="230"></canvas> | |
| <div class="waveform-cursor font-mono" id="waveformCursor">00:00.0</div> | |
| <div class="spec-overlay-loading" id="specLoading" style="display: none;"> | |
| <div class="spinner"></div> | |
| <span>Đang phân tích dạng sóng âm thanh...</span> | |
| </div> | |
| </div> | |
| <div class="waveform-footer"> | |
| <div class="waveform-hint"> | |
| <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> | |
| <circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/> | |
| </svg> | |
| <span>Nhấp hoặc kéo trên biểu đồ để phát từ vị trí bất kỳ</span> | |
| </div> | |
| <div class="waveform-stats font-mono" id="waveformStats">16 kHz • Mono</div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- RIGHT COLUMN: PREDICTED EMOTION & PROBABILITIES --> | |
| <div class="right-col"> | |
| <!-- Main Detected Emotion Result Card --> | |
| <div class="card result-card" id="dominantCard"> | |
| <div class="emotion-header"> | |
| <div class="emotion-avatar" id="emotionEmoji">🎧</div> | |
| <div class="emotion-meta"> | |
| <span class="sub-label">Cảm xúc được phát hiện</span> | |
| <h2 class="emotion-title" id="dominantTitle">Đang chờ âm thanh...</h2> | |
| <div class="badge-row"> | |
| <span class="speed-tag font-mono" id="inferenceSpeed">⚡ --ms</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <audio id="audioPlayer" style="display: none;"></audio> | |
| <script src="/static/app.js?v=2.1"></script> | |
| </body> | |
| </html> | |