Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download resources/app/plugins/test_plugin/frontendPlugin.js from Pendrokar/xVASynth-TTS: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/spaces/Pendrokar/xVASynth-TTS/resolve/main/resources/app/plugins/test_plugin/frontendPlugin.js
- Command line
-
hf download hf://spaces/Pendrokar/xVASynth-TTS/resources/app/plugins/test_plugin/frontendPlugin.js
-
curl -L -o frontendPlugin.js https://huggingface.co/spaces/Pendrokar/xVASynth-TTS/resolve/main/resources/app/plugins/test_plugin/frontendPlugin.js
832 Bytes
| const preStartFn = (window, data) => { | |
| window.appLogger.log("preStartFn") | |
| console.log("preKeepSample") | |
| } | |
| const postStartFn = (window, data) => { | |
| window.appLogger.log("postStartFn") | |
| console.log("postStartFn") | |
| } | |
| const preKeepSample = (window, data) => { | |
| window.appLogger.log("preKeepSample", data) | |
| console.log("preKeepSample data", data) | |
| } | |
| const postKeepSample = (window, data) => { | |
| window.appLogger.log("postKeepSample") | |
| console.log("postKeepSample") | |
| } | |
| // Optional | |
| // ======= | |
| const setup = () => { | |
| window.appLogger.log(`Setting up plugin. App version: ${window.appVersion}`) | |
| console.log("setup") | |
| } | |
| // ======= | |
| exports.preStartFn = preStartFn | |
| exports.postStartFn = postStartFn | |
| exports.preKeepSample = preKeepSample | |
| exports.postKeepSample = postKeepSample | |
| exports.setup = setup |