Commit
·
74b863b
1
Parent(s):
fdef735
repo id instead of url
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="openai/whisper-tiny", # hardcode HF hub link
|
| 20 |
device=device,
|
| 21 |
chunk_length_s=30,
|
| 22 |
)
|