feat(diarization-ui): support video file uploads for transcription
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
7
app.py
7
app.py
@@ -734,8 +734,8 @@ def upload_page(msg: str = ""):
|
|||||||
<datalist id='projectList'></datalist>
|
<datalist id='projectList'></datalist>
|
||||||
</div>
|
</div>
|
||||||
<div class='col-12 col-md-7'>
|
<div class='col-12 col-md-7'>
|
||||||
<label class='form-label'>Audio-Dateien</label>
|
<label class='form-label'>Audio- / Videodateien</label>
|
||||||
<input class='form-control' type='file' id='fileInput' accept='audio/*' multiple required>
|
<input class='form-control' type='file' id='fileInput' accept='audio/*,video/*' multiple required>
|
||||||
<div class='form-text'>Mehrere Dateien: <kbd>Strg</kbd> / <kbd>Cmd</kbd> gedrückt halten beim Auswählen</div>
|
<div class='form-text'>Mehrere Dateien: <kbd>Strg</kbd> / <kbd>Cmd</kbd> gedrückt halten beim Auswählen</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -774,7 +774,8 @@ fileInput.addEventListener('change', () => {{
|
|||||||
const stem = f.name.replace(/\\.[^/.]+$/, '');
|
const stem = f.name.replace(/\\.[^/.]+$/, '');
|
||||||
const li = document.createElement('li');
|
const li = document.createElement('li');
|
||||||
li.className = 'list-group-item py-1 small d-flex justify-content-between';
|
li.className = 'list-group-item py-1 small d-flex justify-content-between';
|
||||||
li.innerHTML = `<span><i class='bi bi-file-earmark-music'></i> ${{stem}}</span><span class='text-secondary'>${{(f.size/1024/1024).toFixed(1)}} MB</span>`;
|
const icon = f.type.startsWith('video/') ? 'bi-file-earmark-play' : 'bi-file-earmark-music';
|
||||||
|
li.innerHTML = `<span><i class='bi ${{icon}}'></i> ${{stem}}</span><span class='text-secondary'>${{(f.size/1024/1024).toFixed(1)}} MB</span>`;
|
||||||
list.appendChild(li);
|
list.appendChild(li);
|
||||||
}});
|
}});
|
||||||
document.getElementById('filePreview').classList.toggle('d-none', fileInput.files.length === 0);
|
document.getElementById('filePreview').classList.toggle('d-none', fileInput.files.length === 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user