-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Voice activity detection import fails #146
Comments
@900miles nice catch! I think that the issue here is that some huggingface models (e.g., pyannote/speaker-diarization-3.1) require the user to accept some conditions before you can use them. A potential solution to this make be adding something like this: "Before start testing with our default model by pyannote-audio, we will ask you to:
|
That makes sense and I think is a good solution. However we should raise that error only when the user attempts to run the model, not during import. During import the model isn't specified, so having this error could be confusing. Especially if the user wants to use a model other than |
I definitely agree in principle. i guess that the error is raised because the code tries to connect to the hub to check if the model exists and since the user is not authorized to use it, it's not even authorized to know... ideas on how to solve this? |
Bump on this. It also occurs when running |
Also the proposed solution
doesn't work in all cases, because you can't run |
@900miles You need to export your huggingface token in your environment variables |
Description
When running the voice activity detection tutorial on google colab (possibly other environments as well, but I've only tested on colab so far), I get a
ValidationError
when importing the voice activity detection module.Specifically the offending line is:
Steps to Reproduce
Open the voice activity detection tutorial in google colab. Add a
!pip install senselab
to the top and run.Expected Results
The tutorial should install senselab and import the modules without error.
Actual Results
During the imports code block:
Additional Notes
No response
The text was updated successfully, but these errors were encountered: