VoiceCraft icon indicating copy to clipboard operation
VoiceCraft copied to clipboard

Gradio Colab Not working

Open Nick088Official opened this issue 10 months ago • 5 comments

Hey i clicked the Gradio Colab that is like at the start of the repo, i runned all the steps, restarted session, ofc being using the T4 daily free gpu of colab, but when i run the code to run the gradio ui, i get the following error:

Traceback (most recent call last): File "/content/VoiceCraft/gradio_app.py", line 9, in <module> from models import voicecraft File "/content/VoiceCraft/models/voicecraft.py", line 90, in <module> class VoiceCraft( TypeError: VoiceCraft.__init_subclass__() takes no keyword arguments

Nick088Official avatar Apr 17 '24 15:04 Nick088Official

can confirm, it's been like this since a few days ago, i tried colab and also local install, not sure what the problem is...

andykaufseo avatar Apr 17 '24 15:04 andykaufseo

What's the your huggingface_hub version (0.22.2 works for me)?

python -c "import huggingface_hub; print(huggingface_hub.__version__)"

jasonppy avatar Apr 17 '24 18:04 jasonppy

for some reason, the colab installs huggingface-hub-0.20.3.

after updating to 0.22.2 it works fine...

andykaufseo avatar Apr 17 '24 19:04 andykaufseo

@Sewlell Looks like adding an extra line to update the version would be nice on the Colab

pgosar avatar Apr 17 '24 19:04 pgosar

I just did that https://github.com/jasonppy/VoiceCraft/commit/ddfef8333147c3c988f439bf3a24394d8e189113

jasonppy avatar Apr 17 '24 19:04 jasonppy