From df5ac8913df6dbf7a6ac6978ca0da7558ba4208e Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 15 Jan 2026 16:54:09 +0100 Subject: [PATCH] fixed pipeline --- main.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/main.js b/main.js index 23fe5fa..ceb787d 100644 --- a/main.js +++ b/main.js @@ -195,6 +195,29 @@ electron.ipcMain.on("file_submit", async (event, args) => { }); + console.log("\n\n Running the Audio to Transcription module"); + // TODO implement transcription module + // This code handles the Audio to Text transcription module call + await mapFunctions + .get("module-handler") + .function(args.transcription.module, audiopath) + .then((resp) => { + console.log(resp); + transcriptpath = resp; + curstep++; + mainWindow.webContents.send("progress", { + curstep: curstep, + totalsteps: totalsteps, + }); + }) + .catch((err) => { + mainWindow.webContents.send("error", err); + console.log(err); + return; + }); + + + console.log("\n\n Running the Transcription Summarizer module"); // This code summarises the transcript, so that it can be used by an llm // await mapFunctions.get("summarize-transcription").function('A:\\programing\\@projects\\video2document\\storage\\transcripts\\IMG_2978.json').then(resp => {