Add support for wan training in ui

This commit is contained in:
Jaret Burkett
2025-03-13 18:54:27 -06:00
parent 31e057d9a3
commit cf4216e6b8
5 changed files with 112 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ export async function GET(request: NextRequest, { params }: { params: { jobID: s
const samples = fs
.readdirSync(samplesFolder)
.filter(file => {
return file.endsWith('.png') || file.endsWith('.jpg') || file.endsWith('.jpeg');
return file.endsWith('.png') || file.endsWith('.jpg') || file.endsWith('.jpeg') || file.endsWith('.webp');
})
.map(file => {
return path.join(samplesFolder, file);