Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
12 |
model_id = "openai/whisper-large-v3"
|
13 |
|
14 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
15 |
-
model_id,
|
16 |
)
|
17 |
model.to(device)
|
18 |
|
|
|
12 |
model_id = "openai/whisper-large-v3"
|
13 |
|
14 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
15 |
+
model_id, low_cpu_mem_usage=True, use_safetensors=True
|
16 |
)
|
17 |
model.to(device)
|
18 |
|