mirror of
https://github.com/openai/whisper.git
synced 2025-11-23 22:15:58 +00:00
Update README.md
Fix outdated (or just incorrect?) python code example in readme
This commit is contained in:
parent
c0d2f624c0
commit
9b84c4df26
@ -118,7 +118,7 @@ Transcription can also be performed within Python:
|
|||||||
import whisper
|
import whisper
|
||||||
|
|
||||||
model = whisper.load_model("turbo")
|
model = whisper.load_model("turbo")
|
||||||
result = model.transcribe("audio.mp3")
|
result = whisper.transcribe(model, "audio.mp3")
|
||||||
print(result["text"])
|
print(result["text"])
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user