kamilakesbi commited on
Commit
84f3b49
·
verified ·
1 Parent(s): 3bc7769

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -39,7 +39,6 @@ segmentation_model = SegmentationModel().from_pretrained('diarizers-community/sp
39
  To use it within a pyannote speaker diarization pipeline, load the [pyannote/speaker-diarization-3.1](https://huggingface.co/pyannote/speaker-diarization-3.1) pipeline, and convert the model to a pyannote compatible format:
40
 
41
  ```python
42
-
43
  from pyannote.audio import Pipeline
44
  import torch
45
 
@@ -58,6 +57,7 @@ pipeline._segmentation.model = model.to(device)
58
  You can now use the pipeline on audio examples:
59
 
60
  ```python
 
61
  # load dataset example
62
  dataset = load_dataset("diarizers-community/callhome", "spa", split="data")
63
  sample = dataset[0]["audio"]
 
39
  To use it within a pyannote speaker diarization pipeline, load the [pyannote/speaker-diarization-3.1](https://huggingface.co/pyannote/speaker-diarization-3.1) pipeline, and convert the model to a pyannote compatible format:
40
 
41
  ```python
 
42
  from pyannote.audio import Pipeline
43
  import torch
44
 
 
57
  You can now use the pipeline on audio examples:
58
 
59
  ```python
60
+ from datasets import load_dataset
61
  # load dataset example
62
  dataset = load_dataset("diarizers-community/callhome", "spa", split="data")
63
  sample = dataset[0]["audio"]