Spaces:
Sleeping
Sleeping
Download scratch/test-gemini.js from Atdevindotcom/youtube-auto-bot: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/Atdevindotcom/youtube-auto-bot/resolve/main/scratch/test-gemini.js
- Command line
-
hf download hf://spaces/Atdevindotcom/youtube-auto-bot/scratch/test-gemini.js
-
curl -L -o test-gemini.js https://huggingface.co/spaces/Atdevindotcom/youtube-auto-bot/resolve/main/scratch/test-gemini.js
540 Bytes
| const path = require('path'); | |
| require('dotenv').config({ path: path.join(__dirname, '..', '.env') }); | |
| const gemini = require('../utils/gemini-service'); | |
| async function test() { | |
| console.log('Testing Gemini Text Generation...'); | |
| try { | |
| const script = await gemini.generateShortsScript('The secret life of ants', 'nature facts'); | |
| console.log('✅ Script Generated Successfully!'); | |
| console.log(JSON.stringify(script, null, 2)); | |
| } catch (error) { | |
| console.error('❌ Text Generation Failed:', error.message); | |
| } | |
| } | |
| test(); | |