Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -64,7 +64,9 @@ compute_metrics(dataset["text"], transcriptions, languages=dataset["language"])
|
|
64 |
By default, the dataset includes the audio, allowing you to run transcription directly.
|
65 |
For example, the following code can be used to evaluate Whisper:
|
66 |
```python
|
67 |
-
dataset = load_dataset("audioshake/jam-alt", revision="v1.0.0"
|
|
|
|
|
68 |
model = whisper.load_model("tiny")
|
69 |
transcriptions = [
|
70 |
"\n".join(s["text"].strip() for s in model.transcribe(a["path"])["segments"])
|
|
|
64 |
By default, the dataset includes the audio, allowing you to run transcription directly.
|
65 |
For example, the following code can be used to evaluate Whisper:
|
66 |
```python
|
67 |
+
dataset = load_dataset("audioshake/jam-alt", revision="v1.0.0")["test"]
|
68 |
+
dataset = dataset.cast_column("audio", datasets.Audio(decode=False)) # Get the raw audio file, let Whisper decode it
|
69 |
+
|
70 |
model = whisper.load_model("tiny")
|
71 |
transcriptions = [
|
72 |
"\n".join(s["text"].strip() for s in model.transcribe(a["path"])["segments"])
|