Spaces:
Running
on
Zero
Running
on
Zero
dtype=float32
Browse files
app.py
CHANGED
@@ -23,12 +23,12 @@ def asr_transcriber(audio_file):
|
|
23 |
device_id = torch.device('cuda')
|
24 |
else:
|
25 |
device_id = torch.device('cpu')
|
26 |
-
|
27 |
# Initialize the ASR pipeline
|
28 |
pipe = pipeline(
|
29 |
"automatic-speech-recognition",
|
30 |
model="openai/whisper-large-v3",
|
31 |
-
torch_dtype=torch.
|
32 |
device=device_id
|
33 |
)
|
34 |
|
|
|
23 |
device_id = torch.device('cuda')
|
24 |
else:
|
25 |
device_id = torch.device('cpu')
|
26 |
+
|
27 |
# Initialize the ASR pipeline
|
28 |
pipe = pipeline(
|
29 |
"automatic-speech-recognition",
|
30 |
model="openai/whisper-large-v3",
|
31 |
+
torch_dtype=torch.float32,
|
32 |
device=device_id
|
33 |
)
|
34 |
|