Fixed Transcription Summarizer, and now the whole pipeline works (except for LLM, because we need the keys for that)

This commit is contained in:
2025-11-24 16:51:48 +01:00
parent a5a60635fc
commit 9dfc05e987
2 changed files with 11 additions and 9 deletions
@@ -28,10 +28,13 @@ module.exports = {
// JSON parsen
if (typeof args === "string") {
try {
await fs.readFile(args, 'utf8', function (err, data) {
if (err) throw err;
inputJson = JSON.parse(data);
});
await new Promise((res) => {
fs.readFile(args, 'utf8', function (err, data) {
if (err) throw err;
inputJson = JSON.parse(data);
res()
});
})
} catch (e) {
console.log("Invalid JSON in summarize-transcription");
console.log(e)