From 8433349af5311afb000af08f3717ef354c2be407 Mon Sep 17 00:00:00 2001 From: fspecii <4722521+fspecii@users.noreply.github.com> Date: Tue, 10 Feb 2026 13:24:36 +0200 Subject: [PATCH] Add AI Enhance toggle for better genre accuracy When enabled, uses the LLM to enrich genre/style tags into detailed music descriptions and generate proper BPM, key, and time signature metadata (CoT features). Fixes genre tags like "pop, rock" producing ballad-like output by matching Gradio UI default behavior. - Add enhance toggle in Style of Music card header - Gate CoT metas/caption/language by enhance OR thinking flag - Remove unsupported --lm-backend/--lm-model from Python fallback - Add i18n translations (en/zh/ja/ko) with tooltip --- components/CreatePanel.tsx | 30 +++++++++++++++++++++--------- i18n/translations.ts | 12 ++++++++++++ server/src/services/acestep.ts | 14 +++++++++----- types.ts | 1 + 4 files changed, 43 insertions(+), 14 deletions(-) diff --git a/components/CreatePanel.tsx b/components/CreatePanel.tsx index 79be27e..6ecd102 100644 --- a/components/CreatePanel.tsx +++ b/components/CreatePanel.tsx @@ -168,6 +168,7 @@ export const CreatePanel: React.FC = ({ const [randomSeed, setRandomSeed] = useState(true); const [seed, setSeed] = useState(-1); const [thinking, setThinking] = useState(false); // Default false for GPU compatibility + const [enhance, setEnhance] = useState(false); // AI Enhance: uses LLM to enrich caption & generate metadata const [audioFormat, setAudioFormat] = useState<'mp3' | 'flac'>('mp3'); const [inferenceSteps, setInferenceSteps] = useState(12); const [inferMethod, setInferMethod] = useState<'ode' | 'sde'>('ode'); @@ -1003,6 +1004,7 @@ export const CreatePanel: React.FC = ({ randomSeed: randomSeed || i > 0, // Force random for subsequent bulk jobs seed: jobSeed, thinking, + enhance, audioFormat, inferMethod, lmBackend, @@ -1601,7 +1603,17 @@ export const CreatePanel: React.FC = ({
- {t('styleOfMusic')} +
+ {t('styleOfMusic')} + +

{t('genreMoodInstruments')}

@@ -1618,15 +1630,15 @@ export const CreatePanel: React.FC = ({ > +
-