worked on fixing the code

This commit is contained in:
santa
2025-11-24 16:40:12 +01:00
parent af13907fdc
commit a5a60635fc
4 changed files with 140 additions and 123 deletions
+5 -3
View File
@@ -139,7 +139,7 @@ electron.ipcMain.on("file_submit", async (event, args) => {
let audiopath = ""
let transcriptpath = ""
console.log("\n\n Running the Video to Audio Extractor");
/* console.log("\n\n Running the Video to Audio Extractor");
// This code handles the Video to Audio extraction module call
await mapFunctions.get("module-handler").function(args.video.module, {inputVideoPath: args.video.inputVideoPath, outputType: args.video.outputType}).then(resp => {
console.log(resp);
@@ -164,11 +164,13 @@ electron.ipcMain.on("file_submit", async (event, args) => {
mainWindow.webContents.send("error", 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(transcriptpath).then(resp => {
// await mapFunctions.get("summarize-transcription").function(transcriptpath).then(resp => {
await mapFunctions.get("summarize-transcription").function('/Users/santa/Proj25/video2document/storage/transcripts/IMG_2978.json').then(resp => {
console.log(resp);
transcriptpath = resp
curstep++