Skip to content

Commit

Permalink
Lock torch version, fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronk committed Nov 28, 2022
1 parent 61dac38 commit ff920c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions speaker-diarization/cog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ build:
python_version: "3.8"
python_packages:
- "pyannote.audio==2.1.1"
# - "torch==1.11.0"
# - "torchvision==0.12.0"
# - "torchaudio==0.11.0"
- "torch==1.11.0"
- "torchaudio==0.11.0"
- "torchvision==0.12.0"
system_packages:
- "libsndfile1"
predict: "predict.py:Predictor"
2 changes: 1 addition & 1 deletion speaker-diarization/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def predict(
use_auth_token=auth_token
)

if audio.suffix is not "wav":
if audio.suffix != "wav":
raise "Input file must be wav"

diarization = self.pipeline(
Expand Down

0 comments on commit ff920c6

Please sign in to comment.