Katsuya Oda commited on
Commit
3ef3c1c
1 Parent(s): ba5463e

fix: guard path

Browse files
Files changed (1) hide show
  1. handler.py +2 -0
handler.py CHANGED
@@ -7,6 +7,8 @@ import torchaudio
7
 
8
  class EndpointHandler:
9
  def __init__(self, path=""):
 
 
10
  # load the model
11
  self.pipeline = Pipeline.from_pretrained(path)
12
 
 
7
 
8
  class EndpointHandler:
9
  def __init__(self, path=""):
10
+ if path != "config.yaml":
11
+ path = "hicustomer/pyannote-speaker-diarization"
12
  # load the model
13
  self.pipeline = Pipeline.from_pretrained(path)
14