inference_code_snippet_added
Browse files
README.md
CHANGED
@@ -47,7 +47,6 @@ In order to infer a single audio file using this model, the following code snipp
|
|
47 |
|
48 |
>>> # path to the audio file to be transcribed
|
49 |
>>> audio = "/path/to/audio.format"
|
50 |
-
|
51 |
>>> device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
52 |
|
53 |
>>> transcribe = pipeline(task="automatic-speech-recognition", model="vasista22/whisper-kannada-base", chunk_length_s=30, device=device)
|
|
|
47 |
|
48 |
>>> # path to the audio file to be transcribed
|
49 |
>>> audio = "/path/to/audio.format"
|
|
|
50 |
>>> device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
51 |
|
52 |
>>> transcribe = pipeline(task="automatic-speech-recognition", model="vasista22/whisper-kannada-base", chunk_length_s=30, device=device)
|