Not working for me, error

#1
by jujutechnology - opened

ValueError: max() arg is an empty sequence
Traceback:
File "/home/user/app/app.py", line 111, in
main(file_path, analysis_level, writting_style, word_lower_limit, word_upper_limit, gender, speed, number_of_images, detail_level, perspective, emotion, time_setting, art_style, style, color_palette)
File "/home/user/app/main.py", line 20, in main
text_to_video()
File "/home/user/app/src/text_to_video.py", line 151, in text_to_video
concatenate_audio_files("./","final_audio.mp3")
File "/home/user/app/src/text_to_video.py", line 71, in concatenate_audio_files
final_audio = concatenate_audioclips(audio_clips)
File "/usr/local/lib/python3.10/site-packages/moviepy/audio/AudioClip.py", line 437, in concatenate_audioclips
return CompositeAudioClip(newclips).with_duration(starts_end[-1])
File "/usr/local/lib/python3.10/site-packages/moviepy/audio/AudioClip.py", line 378, in init
self.nchannels = max(clip.nchannels for clip in self.clips)

Thank you for your response! The app is fixed!
This seems to be a problem with Gemini API since they had changed their syntax for Gemini a couple days ago. The new syntax is similar to what OpenAI is using for their API.
Also if it still isn't running, this might because I've ran out of API quota.
You can try to clone the repo and add your own .env

Thanks. It is working now. You should add the language that the video will output in to the App page so people will know.

I'm currently making this for Vietnamese. It's just a demo. I'll try to improve it later. Thanks for your feedback!

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment