Commit
·
aa2a138
1
Parent(s):
487e4ae
whisper large
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -19,7 +19,7 @@ class EndpointHandler:
|
|
| 19 |
device = 0 if torch.cuda.is_available() else "cpu"
|
| 20 |
self.pipeline = pipeline(
|
| 21 |
"automatic-speech-recognition",
|
| 22 |
-
model="openai/whisper-
|
| 23 |
device=device,
|
| 24 |
chunk_length_s=30,
|
| 25 |
)
|
|
|
|
| 19 |
device = 0 if torch.cuda.is_available() else "cpu"
|
| 20 |
self.pipeline = pipeline(
|
| 21 |
"automatic-speech-recognition",
|
| 22 |
+
model="openai/whisper-large-v2", # hardcode HF hub link
|
| 23 |
device=device,
|
| 24 |
chunk_length_s=30,
|
| 25 |
)
|