Build out an audio player card in preperation for audio datasets and samples.

This commit is contained in:
Jaret Burkett committed 2026-02-03 08:15:55 -07:00
1 parent 50664c2421
commit 42acb0d4be
11 files changed
+843 -12

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ export async function POST(request: Request) {
* @returns Array of absolute paths to image files
*/
function findImagesRecursively(dir: string): string[] {
const imageExtensions = ['.png', '.jpg', '.jpeg', '.webp', '.mp4', '.avi', '.mov', '.mkv', '.wmv', '.m4v', '.flv'];
const imageExtensions = ['.png', '.jpg', '.jpeg', '.webp', '.mp4', '.avi', '.mov', '.mkv', '.wmv', '.m4v', '.flv', '.mp3', '.wav'];
let results: string[] = [];
const items = fs.readdirSync(dir);