Open matheudev opened 1 day ago
Hello! Thanks for looking into my project.
It looks like you are using version 0.1.0 which does not support OpenAI. Version 0.2.0 fixed this and comes with a web UI.
While the new version has not been released, you can read the README file to setup the web UI for the time being.
Keep in mind that this new version has not been released and may be bugs and issues with the video generation.
Let me know if you encounter any issues or bugs.
When running the CLI I get this error:
ℹ Welcome to AutoShorts AI video generator v0.1.1-dev! ℹ [*] Resource path not found (--resPath). Using 'res' directory.
--> Current options: ℹ AI Type: GPTAIGen ℹ TTS Type: ElevenLabs ℹ Image API Type: PexelsImageGen ℹ Temp path: /home/matheus/auto-shorts-0.1.1/video_temp ℹ Res path: /home/matheus/auto-shorts-0.1.1/res ℹ Prompt: Make a motivational video about relationship and love
--> Advanced options: ℹ Delete files: true ℹ Change photos: true ℹ Disable TTS: false ℹ Disable subtitles: false ℹ Background video: Using random ℹ Background music: Using random ℹ Eleven Labs API key: present ℹ Pexels API key: present ? Change advanced options? (y/n) -> n ℹ User prompt (via args): Make a motivational video about relationship and love ℹ Generating video script... ℹ TODO: Make GPTAIGen work ℹ Final response: TODO ℹ Video script generated successfully! Invalid JSON data: Unexpected token 'T', "TODO" is not valid JSON /home/matheus/auto-shorts-0.1.1/dist/index.js:141 throw new Error("Invalid JSON data!"); ^
Error: Invalid JSON data! at genVideo (/home/matheus/auto-shorts-0.1.1/dist/index.js:141:15) at genVideoWithAI (/home/matheus/auto-shorts-0.1.1/dist/index.js:90:18) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async cli (/home/matheus/auto-shorts-0.1.1/dist/cli.js:425:18)
Node.js v20.18.0