Refactor LoRA template with modular components and script updates

This commit is contained in:
Will Miao
2025-02-04 12:20:56 +08:00
parent 5ed037b219
commit 9489a1989a
14 changed files with 898 additions and 45 deletions

View File

@@ -0,0 +1,8 @@
// Debounce function
export function debounce(func, wait) {
let timeout;
return function(...args) {
clearTimeout(timeout);
timeout = setTimeout(() => func.apply(this, args), wait);
};
}