Commit
·
fdef735
1
Parent(s):
a569fc7
model link
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -16,7 +16,7 @@ class EndpointHandler:
|
|
| 16 |
device = 0 if torch.cuda.is_available() else "cpu"
|
| 17 |
self.pipeline = pipeline(
|
| 18 |
"automatic-speech-recognition",
|
| 19 |
-
model=
|
| 20 |
device=device,
|
| 21 |
chunk_length_s=30,
|
| 22 |
)
|
|
|
|
| 16 |
device = 0 if torch.cuda.is_available() else "cpu"
|
| 17 |
self.pipeline = pipeline(
|
| 18 |
"automatic-speech-recognition",
|
| 19 |
+
model="https://huggingface.co/openai/whisper-tiny", # hardcode HF hub link
|
| 20 |
device=device,
|
| 21 |
chunk_length_s=30,
|
| 22 |
)
|