octimot / StoryToolkitAI

An editing tool that uses AI to transcribe, understand content and search for anything in your footage, integrated with ChatGPT and other AI models
GNU General Public License v3.0
724 stars 60 forks source link

Possible bug with downloading spacy model #174

Open galavera opened 7 months ago

galavera commented 7 months ago

https://github.com/octimot/StoryToolkitAI/blob/836d5b8dce45459968a623d378bb2e137c26dbf5/storytoolkitai/core/toolkit_ops/textanalysis.py#L114

I was getting this error logger.error('Could not fetch the list of available spaCy models from {}. ' 'Please check your internet connection.'.format(url)) I had to change the url on line 114 to this. url = "https://api.github.com/repos/explosion/spacy-models/releases"

I basically just removed ?per_page=100 at the end and I was able to auto download the spacy model after that adjustment.

octimot commented 7 months ago

Will look into it, thanks!

Do you know which spacy model was the app trying to download?

Cheers!

galavera commented 7 months ago

Will look into it, thanks!

Do you know which spacy model was the app trying to download?

Cheers!

when searching for models based on language (en) using the original link it would return an error, so no model was found or downloaded.

Somehow the '?per_page=100' was messing it up. I removed it on a whim and that resolved the issue and it was able to find a model and download it.