camparchimedes commited on
Commit
a5bd743
·
verified ·
1 Parent(s): d2774a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,10 +25,10 @@ warnings.filterwarnings("ignore")
25
 
26
  processor = AutoProcessor.from_pretrained("NbAiLabBeta/nb-whisper-large-semantic")
27
  model = AutoModelForSpeechSeq2Seq.from_pretrained("NbAiLabBeta/nb-whisper-large-semantic")
28
- model.to(device)
29
 
30
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
31
- #torch_dtype = torch.float32
32
  model.to(device)
33
 
34
  def convert_to_wav(audio_file):
 
25
 
26
  processor = AutoProcessor.from_pretrained("NbAiLabBeta/nb-whisper-large-semantic")
27
  model = AutoModelForSpeechSeq2Seq.from_pretrained("NbAiLabBeta/nb-whisper-large-semantic")
28
+
29
 
30
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
31
+ torch_dtype = torch.float32
32
  model.to(device)
33
 
34
  def convert_to_wav(audio_file):