Spaces:
Configuration error
Configuration error
Download scripts/run-electron-debug.cjs from pirzm1/video-generator: direct link, hf CLI and curl.
- Browser
- Download file 719 Bytes
-
https://huggingface.co/spaces/pirzm1/video-generator/resolve/main/scripts/run-electron-debug.cjs
- Command line
-
hf download hf://spaces/pirzm1/video-generator/scripts/run-electron-debug.cjs
-
curl -L -o run-electron-debug.cjs https://huggingface.co/spaces/pirzm1/video-generator/resolve/main/scripts/run-electron-debug.cjs
719 Bytes
| const { spawn } = require('child_process'); | |
| const electronBinary = require('electron'); | |
| const env = { | |
| ...process.env, | |
| AUTOMATED_VIDEO_GENERATOR_DEBUG: process.env.AUTOMATED_VIDEO_GENERATOR_DEBUG || '1', | |
| AUTOMATED_VIDEO_GENERATOR_OPEN_DEVTOOLS: process.env.AUTOMATED_VIDEO_GENERATOR_OPEN_DEVTOOLS || '1', | |
| AUTOMATED_VIDEO_GENERATOR_REMOTE_DEBUG_PORT: process.env.AUTOMATED_VIDEO_GENERATOR_REMOTE_DEBUG_PORT || '9222', | |
| }; | |
| const args = ['.', '--avgen-debug', '--avgen-devtools']; | |
| const child = spawn(electronBinary, args, { | |
| env, | |
| shell: false, | |
| stdio: 'inherit', | |
| }); | |
| child.on('exit', (code, signal) => { | |
| if (signal) { | |
| process.kill(process.pid, signal); | |
| return; | |
| } | |
| process.exit(code ?? 0); | |
| }); | |