Skip to content

apply._diarize() does not allow for specification of Hugging Face token #26

Description

@gregoryfoster

Describe the Bug

The apply() function fails as a Hugging Face token is not supplied. The contained _diarize() function calls:

diarization_pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization")

This results in an error indicating the pipeline is private/gated.

Expected Behavior

The HUGGINGFACE_TOKEN environment variable is not utilized as it is in preprocess.diarize_and_split_audio().

Reproduction

pipenv install speakerbox=1.2.0
Executive script which calls apply() function with a trained model.

Environment

  • OS Version: macOS 13.4
  • Python: 3.10.13
  • speakerbox Version: 1.2.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions