Spaces:
Sleeping
Sleeping
sotirios-slv
commited on
Commit
•
d3e099a
1
Parent(s):
50a8cbc
Set device to cpu
Browse files
app.py
CHANGED
@@ -6,7 +6,8 @@ import torch
|
|
6 |
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
7 |
|
8 |
|
9 |
-
device = "
|
|
|
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"
|