Open 900miles opened 3 weeks ago
@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:
notebook_login
belowfrom huggingface_hub import notebook_login
notebook_login()
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 pyannote
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
pyannote
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?
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