Skip to content

got an unexpected keyword argument 'use_auth_token' #34

Description

@shihab-sol

TypeError Traceback (most recent call last)
in <cell line: 6>()
4
5 device = "cuda:0" if torch.cuda.is_available() else "cpu"
----> 6 pipeline = ASRDiarizationPipeline.from_pretrained("openai/whisper-tiny", device=device,token='')
7
8 # load dataset of concatenated LibriSpeech samples

2 frames
/usr/local/lib/python3.10/dist-packages/transformers/pipelines/automatic_speech_recognition.py in init(self, model, feature_extractor, tokenizer, decoder, modelcard, framework, task, args_parser, device, torch_dtype, binary_output, **kwargs)
286 self.type = "ctc"
287
--> 288 self._preprocess_params, self._forward_params, self._postprocess_params = self._sanitize_parameters(**kwargs)
289
290 mapping = MODEL_FOR_SPEECH_SEQ_2_SEQ_MAPPING_NAMES.copy()

TypeError: AutomaticSpeechRecognitionPipeline._sanitize_parameters() got an unexpected keyword argument 'use_auth_token'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions