Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with JSON Data "TODO" #5

Open
matheudev opened this issue Oct 10, 2024 · 1 comment
Open

Error with JSON Data "TODO" #5

matheudev opened this issue Oct 10, 2024 · 1 comment

Comments

@matheudev
Copy link

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

@alamshafil
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants