sotirios-slv commited on
Commit
d3e099a
1 Parent(s): 50a8cbc

Set device to cpu

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ import torch
6
  from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
7
 
8
 
9
- device = "cuda:0" if torch.cuda.is_available() else "cpu"
 
10
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
11
 
12
  model_id = "openai/whisper-large-v3"
 
6
  from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
7
 
8
 
9
+ device = "cpu"
10
+ # device = "cuda:0" if torch.cuda.is_available() else "cpu"
11
  torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
12
 
13
  model_id = "openai/whisper-large-v3"