Compare commits

...

3 Commits

Author SHA1 Message Date
emily df5ac8913d fixed pipeline 2026-01-15 16:54:09 +01:00
MikeHughes-BIN 9696434145 Enhance module retrieval by categorizing AI and transcription modules 2026-01-15 16:38:59 +01:00
Hughes, Mike 9fc44bea63 Merge branch 'feature/speaker_renaming' into 'develop'
Remade replace Speaker module which now takes the premade speaker mapping json...

See merge request proj-wise2526-video2document/video2document!89
2026-01-15 14:36:24 +01:00
+35 -3
View File
@@ -110,9 +110,18 @@ electron.ipcMain.handle('get-module-names', async () => {
"ai_modules":[], "ai_modules":[],
"transcription_modules":[] "transcription_modules":[]
} }
}); mapFunctions.forEach(e => {
// console.log(module_array); switch(e.type){
return module_array; case "llm":
module_array.ai_modules.push({"name": e.name, "displayname": e.displayname})
break;
case "transcription":
module_array.transcription_modules.push({"name": e.name, "displayname": e.displayname})
break;
}
})
// console.log(module_array);
return module_array
}); });
// electron.ipcMain.on("get_modules", async (event, args) => { // electron.ipcMain.on("get_modules", async (event, args) => {
@@ -186,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"); console.log("\n\n Running the Transcription Summarizer module");
// This code summarises the transcript, so that it can be used by an llm // 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 => { // await mapFunctions.get("summarize-transcription").function('A:\\programing\\@projects\\video2document\\storage\\transcripts\\IMG_2978.json').then(resp => {