Skip to content

Commit

Permalink
reverted to cuda check for gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
sethu committed Aug 23, 2024
1 parent 2a245d5 commit 6b2c44e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions load_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#load the whisper model from net if it isn't stored locally
def load_model(model_id, model_path):
#check GPU is avaialbe
#device = "cuda" if torch.cuda.is_available() else "cpu"
device = "cpu"
device = "cuda" if torch.cuda.is_available() else "cpu"
#device = "cpu"
model = whisper.load_model(model_id, device=device, download_root=model_path)
print(
f"Model will be run on {device}\n"
Expand Down

0 comments on commit 6b2c44e

Please sign in to comment.