Liu Song’s Projects


~/Projects/faster-whisper

git clone https://code.lsong.org/faster-whisper

Commit

Commit
2a37390fed873f0c6d645ca234eab2bc0c9b16e5
Author
Guillaume Klein <[email protected]>
Date
2023-07-18 15:08:53 +0200 +0200
Diffstat
 README.md | 4 ++--

Minor reformatting in code snippet


diff --git a/README.md b/README.md
index 54d744507fdf7a0b1be0dbc60c654d534921714e..44685e6f13ade011dffbacff4e93c9e70da85dad 100644
--- a/README.md
+++ b/README.md
@@ -165,12 +165,12 @@ ### Load a converted model
 
 1. Directly load the model from a local directory:
 ```python
-model = faster_whisper.WhisperModel('whisper-large-v2-ct2')
+model = faster_whisper.WhisperModel("whisper-large-v2-ct2")
 ```
 
 2. [Upload your model to the Hugging Face Hub](https://huggingface.co/docs/transformers/model_sharing#upload-with-the-web-interface) and load it from its name:
 ```python
-model = faster_whisper.WhisperModel('username/whisper-large-v2-ct2')
+model = faster_whisper.WhisperModel("username/whisper-large-v2-ct2")
 ```
 
 ## Comparing performance against other implementations