facebookresearch / audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
MIT License
20.7k stars 2.11k forks source link

Update spaCy dependency so demo project can run #355

Closed jamesonwilliams closed 10 months ago

jamesonwilliams commented 10 months ago

Currently, the musicgen_app.py demo does not run; it fails with the following error:

pydantic.errors.PydanticImportError: pydantic:ConstrainedStr has been removed in V2.

It is possible to resolve this error by upping the spaCy dependency, which is what's bringing in the old version of pydantic.

spaCy 3.6.1+ uses the new Pydantic version: https://github.com/explosion/spaCy/releases/tag/v3.6.1

Note: this PR is similar to https://github.com/facebookresearch/audiocraft/pull/278.

felixkreuk commented 10 months ago

Thanks for the contribution!