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.59k stars 2.09k forks source link

Gradio module not found? #199

Open lebakerino opened 1 year ago

lebakerino commented 1 year ago

Hi, I am trying to install this but getting the below error, I used the guide by 'SECourses' (Furkan) who I believe is active here, maybe if you see this you may be able to advise. I've followed the instructions yet I am getting the below error when running the commands to attempt to launch the app.

Any advice? Thanks.

C:\metamusic\audiocraft>call .\venv\Scripts\activate.bat

(venv) C:\metamusic\audiocraft>python .\demos\musicgen_app.py --inbrowser Traceback (most recent call last): File "C:\metamusic\audiocraft\demos\musicgen_app.py", line 21, in import gradio as gr ModuleNotFoundError: No module named 'gradio'

(venv) C:\metamusic\audiocraft>

FurkanGozukara commented 1 year ago

Hi, I am trying to install this but getting the below error, I used the guide by 'SECourses' (Furkan) who I believe is active here, maybe if you see this you may be able to advise. I've followed the instructions yet I am getting the below error when running the commands to attempt to launch the app.

Any advice? Thanks.

C:\metamusic\audiocraft>call .\venv\Scripts\activate.bat

(venv) C:\metamusic\audiocraft>python .\demos\musicgen_app.py --inbrowser Traceback (most recent call last): File "C:\metamusic\audiocraft\demos\musicgen_app.py", line 21, in import gradio as gr ModuleNotFoundError: No module named 'gradio'

(venv) C:\metamusic\audiocraft>

well the requirements have gradio > https://github.com/facebookresearch/audiocraft/blob/main/requirements.txt

are you using latest commit?

you can do this activate venv and pip install gradio

lebakerino commented 1 year ago

Hi, I am trying to install this but getting the below error, I used the guide by 'SECourses' (Furkan) who I believe is active here, maybe if you see this you may be able to advise. I've followed the instructions yet I am getting the below error when running the commands to attempt to launch the app. Any advice? Thanks. C:\metamusic\audiocraft>call .\venv\Scripts\activate.bat (venv) C:\metamusic\audiocraft>python .\demos\musicgen_app.py --inbrowser Traceback (most recent call last): File "C:\metamusic\audiocraft\demos\musicgen_app.py", line 21, in import gradio as gr ModuleNotFoundError: No module named 'gradio' (venv) C:\metamusic\audiocraft>

well the requirements have gradio > https://github.com/facebookresearch/audiocraft/blob/main/requirements.txt

are you using latest commit?

you can do this activate venv and pip install gradio

Thanks for response, I was using the latest that was pulled from git, no idea what was going on, decided to just try Ponikio to install it and it worked.

Cheers.