Adriaanvh1 commited on
Commit
fdef735
·
1 Parent(s): a569fc7

model link

Browse files
Files changed (1) hide show
  1. 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=path,
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
  )