Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -248,7 +248,7 @@ def insert_prompt(current_text, prompt):
|
|
248 |
|
249 |
|
250 |
# Define the ASR model with Whisper
|
251 |
-
model_id = 'openai/whisper-
|
252 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
253 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
254 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(model_id, torch_dtype=torch_dtype).to(device)
|
|
|
248 |
|
249 |
|
250 |
# Define the ASR model with Whisper
|
251 |
+
model_id = 'openai/whisper-large-v3'
|
252 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
253 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
254 |
model = AutoModelForSpeechSeq2Seq.from_pretrained(model_id, torch_dtype=torch_dtype).to(device)
|