From f435003e0c2dd152a2117d11c0ab6fcd4f2d84c0 Mon Sep 17 00:00:00 2001 From: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com> Date: Mon, 4 Sep 2023 11:53:41 +0100 Subject: [PATCH] [MMS] Fix pip install in docs (#25949) --- docs/source/en/model_doc/mms.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/source/en/model_doc/mms.md b/docs/source/en/model_doc/mms.md index 009fcaa4f6..497eb40d7e 100644 --- a/docs/source/en/model_doc/mms.md +++ b/docs/source/en/model_doc/mms.md @@ -174,7 +174,7 @@ documentation under [VITS](https://huggingface.co/docs/transformers/main/en/mode To use the MMS model, first update to the latest version of the Transformers library: -``` +```bash pip install --upgrade transformers accelerate ``` @@ -313,11 +313,12 @@ Different LID models are available based on the number of languages they can rec #### Inference First, we install transformers and some other libraries -``` -pip install torch accelerate torchaudio datasets + +```bash +pip install torch accelerate datasets[audio] pip install --upgrade transformers ```` -pip install torch datasets[audio] + Next, we load a couple of audio samples via `datasets`. Make sure that the audio data is sampled to 16000 kHz. ```py