File size: 526 Bytes
3ecd153
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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)