Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
|
11 |
model_id = "openai/whisper-large-v3"
|
12 |
|
13 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
14 |
-
model_id, torch_dtype=torch_dtype,
|
15 |
)
|
16 |
model.to(device)
|
17 |
|
|
|
11 |
model_id = "openai/whisper-large-v3"
|
12 |
|
13 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(
|
14 |
+
model_id, torch_dtype=torch_dtype, use_safetensors=True
|
15 |
)
|
16 |
model.to(device)
|
17 |
|