From 8af2294814bbc85659c2a8c78a66edf90a8b6267 Mon Sep 17 00:00:00 2001 From: Jaikinator Date: Mon, 12 Feb 2024 12:40:51 +0100 Subject: [PATCH] avoid merge conflict --- scraibe/diarisation.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scraibe/diarisation.py b/scraibe/diarisation.py index 570ac29..e598d30 100644 --- a/scraibe/diarisation.py +++ b/scraibe/diarisation.py @@ -212,9 +212,7 @@ class Diariser: if not os.path.exists(model) and use_auth_token is None: use_auth_token = cls._get_token() - model = 'pyannote/speaker-diarization' - elif not os.path.exists(model) and use_auth_token is not None: - model = 'pyannote/speaker-diarization' + elif os.path.exists(model) and not use_auth_token: # check if model can be found locally nearby the config file with open(model, 'r') as file: