Pijush2023 commited on
Commit
3a8f733
·
verified ·
1 Parent(s): ceb547f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-small'
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)