Spaces:
Configuration error
Configuration error
Download scripts/test-upload-post.ts from pirzm1/video-generator: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/pirzm1/video-generator/resolve/main/scripts/test-upload-post.ts
- Command line
-
hf download hf://spaces/pirzm1/video-generator/scripts/test-upload-post.ts
-
curl -L -o test-upload-post.ts https://huggingface.co/spaces/pirzm1/video-generator/resolve/main/scripts/test-upload-post.ts
505 Bytes
| // scripts/test-upload-post.ts — quick offline smoke check for upload-post env gating. | |
| import { isUploadConfigured, getSupportedPlatforms, isValidPlatform } from '../src/agentic/services/upload-post.js'; | |
| console.log(`isUploadConfigured (no env): ${isUploadConfigured()}`); | |
| console.log(`getSupportedPlatforms: ${JSON.stringify(getSupportedPlatforms())}`); | |
| console.log(`isValidPlatform('tiktok'): ${isValidPlatform('tiktok')}`); | |
| console.log(`isValidPlatform('fakebook'): ${isValidPlatform('fakebook')}`); |