Spaces:
Sleeping
Sleeping
sotirios-slv
commited on
Commit
·
91f6a7c
1
Parent(s):
ed2c947
Switching to large model
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
|
|
11 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
12 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
13 |
|
14 |
-
model_id = "openai/whisper-small"
|
15 |
-
|
16 |
|
17 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
18 |
model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
|
|
|
11 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
12 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
13 |
|
14 |
+
# model_id = "openai/whisper-small"
|
15 |
+
model_id = "openai/whisper-large-v3"
|
16 |
|
17 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
18 |
model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
|