i18n CreatePanel with genre picker, model selector, EditableSlider, and LoRA panel

Phase 4.3: Largest component change. Adds cascading genre picker using
Phase 3 style data, DiT model selector with backend sync, EditableSlider
for all numeric parameters, LoRA load/unload panel, bulk generate, vocal
gender selector. Batch size max kept at 4 (not 8), inference steps max
kept at 32 (not 200) to prevent OOM. Added LoRA API stubs to api.ts.
Added ditModel to GenerationParams type.
This commit is contained in:
fspecii
2026-02-08 18:41:14 +02:00
parent 325046eaf2
commit b00af8a704
3 changed files with 804 additions and 432 deletions
+749 -388
View File
File diff suppressed because it is too large Load Diff
+10
View File
@@ -332,6 +332,16 @@ export const generateApi = {
status_message?: string; status_message?: string;
error?: string; error?: string;
}> => api('/api/generate/format', { method: 'POST', body: params, token }), }> => api('/api/generate/format', { method: 'POST', body: params, token }),
// LoRA management (requires ACE-Step training fork)
loadLora: (params: { lora_path: string }, token: string): Promise<{ message: string }> =>
api('/api/generate/lora/load', { method: 'POST', body: params, token }),
unloadLora: (token: string): Promise<{ message: string }> =>
api('/api/generate/lora/unload', { method: 'POST', token }),
setLoraScale: (params: { scale: number }, token: string): Promise<{ message: string }> =>
api('/api/generate/lora/scale', { method: 'POST', body: params, token }),
}; };
// Users API // Users API
+1
View File
@@ -59,6 +59,7 @@ export interface GenerationParams {
lyrics: string; lyrics: string;
style: string; style: string;
title: string; title: string;
ditModel?: string;
// Common // Common
instrumental: boolean; instrumental: boolean;