Skip to content

Commit

Permalink
Removed issue in wav2vec link (#18945)
Browse files Browse the repository at this point in the history
Fix connected to [this issue](#18944)
  • Loading branch information
chrisemezue committed Sep 12, 2022
1 parent 4c2e983 commit 470799b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/en/tasks/audio_classification.mdx
Expand Up @@ -117,7 +117,7 @@ The [MInDS-14](https://huggingface.co/datasets/PolyAI/minds14) dataset has a sam
The preprocessing function needs to:

1. Call the `audio` column to load and if necessary resample the audio file.
2. Check the sampling rate of the audio file matches the sampling rate of the audio data a model was pretrained with. You can find this information on the Wav2Vec2 [model card]((https://huggingface.co/facebook/wav2vec2-base)).
2. Check the sampling rate of the audio file matches the sampling rate of the audio data a model was pretrained with. You can find this information on the Wav2Vec2 [model card](https://huggingface.co/facebook/wav2vec2-base).
3. Set a maximum input length so longer inputs are batched without being truncated.

```py
Expand Down Expand Up @@ -189,4 +189,4 @@ At this point, only three steps remain:

For a more in-depth example of how to fine-tune a model for audio classification, take a look at the corresponding [PyTorch notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/audio_classification.ipynb).

</Tip>
</Tip>

0 comments on commit 470799b

Please sign in to comment.