#deepneurones = pipeline("text2text-generation", model="google/flan-t5-small") from pyannote.audio import Pipeline use_auth_token="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" deepneuronesdiarization = Pipeline.from_pretrained("pyannote/speaker-diarization", use_auth_token=use_auth_token) class AudioAnalyserDiarization: @classmethod def diarization(cls, file_content): # results = deepneuronesdiarizatin(file_content) # return results return deepneuronesdiarization(file_content)