Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
29 |
|
30 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
31 |
-
|
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):
|