Skip to content

Instantly share code, notes, and snippets.

@jamescalam
Created October 14, 2022 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamescalam/9b41191c65c029602d85c08043f6f683 to your computer and use it in GitHub Desktop.
Save jamescalam/9b41191c65c029602d85c08043f6f683 to your computer and use it in GitHub Desktop.
import whisper
import torch # install steps: pytorch.org
device = "cuda" if torch.cuda.is_available() else "cpu"
model = whisper.load_model("large").to(device)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment