From d9fd9f65916e68e8c091a5d10ea4b66067fadf90 Mon Sep 17 00:00:00 2001 From: Joel Mathew Thomas <90510078+joelmathewthomas@users.noreply.github.com> Date: Tue, 18 Mar 2025 02:02:36 +0530 Subject: [PATCH] code refactor --- client/src/Pages/PreviewPage.tsx | 2 +- client/src/Pages/ProcessingPage.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/Pages/PreviewPage.tsx b/client/src/Pages/PreviewPage.tsx index 0ea3898..b8d976b 100644 --- a/client/src/Pages/PreviewPage.tsx +++ b/client/src/Pages/PreviewPage.tsx @@ -32,7 +32,6 @@ function PreviewPage() { return ( -

Audio Classification: {audioClass || "No data received"}

@@ -92,6 +91,7 @@ function PreviewPage() { controls /> +

Audio Classification: {audioClass || "No data received"}

) : ( diff --git a/client/src/Pages/ProcessingPage.tsx b/client/src/Pages/ProcessingPage.tsx index cc319de..5ee8734 100644 --- a/client/src/Pages/ProcessingPage.tsx +++ b/client/src/Pages/ProcessingPage.tsx @@ -51,7 +51,7 @@ function ProcessingPage() { processStep("/api/trim", () => { if (response.audio_class === "Music") { processStep("/api/resample", () => { - processStep("/api/separate", () => setProgress(100), 100, "Separating sources into vocals, bass, drums and other..."); + processStep("/api/separate", () => setProgress(100), 100, "Separating music into vocals, bass, drums and other..."); }, 75, "Resampling audio to 44100Hz...", { sr: "44100" }); } else { processStep("/api/noisereduce", () => setProgress(100), 100, "Reducing background noise from the audio...");