From 91c47c22f2c71c524fd665f19186bb014c94ab31 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 4 Jun 2018 04:50:27 +0200 Subject: audioplayer you can toggle --- app/relay/modules/samplernn.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/relay/modules') diff --git a/app/relay/modules/samplernn.js b/app/relay/modules/samplernn.js index 3962755..d3b5012 100644 --- a/app/relay/modules/samplernn.js +++ b/app/relay/modules/samplernn.js @@ -6,6 +6,8 @@ const cwd = process.env.SAMPLERNN_CWD || path.join(process.env.HOME, 'code/' + n const fetch = { type: 'perl', script: 'get.pl', + // here i need to bridge again... get the filename that comes back from youtube-dl + // and tell the cortex that URL -> fn and add the filename!s params: (task) => { console.log(task) return [ task.opt.url ] @@ -26,7 +28,7 @@ const train = { '--keep_old_checkpoints', task.opt.keep_old_checkpoints ? 'True' : 'False', ] }, - onComplete: publish, + after: publish, } const generate = { type: 'pytorch', @@ -42,7 +44,7 @@ const generate = { '--keep_old_checkpoints', task.opt.keep_old_checkpoints ? 'True' : 'False', ] }, - onComplete: publish, + after: publish, } const publish = { type: 'perl', -- cgit v1.2.3-70-g09d2