mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Summarizer und weiters angepasst
This commit is contained in:
@@ -7,6 +7,7 @@ if (!fs.existsSync(outputDir)) {
|
||||
fs.mkdirSync(outputDir, { recursive: true });
|
||||
}
|
||||
|
||||
//Speaker, ALL-Sentences, Start, End
|
||||
|
||||
module.exports = {
|
||||
name: "summarize-transcription", // Unique name for our function that will later be used to get the function from the map via "mapFunctions.get("example").function()"
|
||||
@@ -34,8 +35,7 @@ module.exports = {
|
||||
return { error: "Invalid JSON" };
|
||||
}
|
||||
}
|
||||
// console.log(inputJson);
|
||||
console.log(outputDir);
|
||||
|
||||
const words = inputJson.words;
|
||||
if (!Array.isArray(words)) {
|
||||
return { error: "No words Array found" };
|
||||
|
||||
Reference in New Issue
Block a user