Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
dumitrugutu committed Jul 31, 2024
1 parent 889b855 commit 1970a32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion speechmatics/batch_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ def submit_job(
a filepath as a string or Path object, or a dict"""
)

if config_dict.get("transcription_config", {}).get("diarization") == "channel_and_speaker_change":
if (
config_dict.get("transcription_config", {}).get("diarization")
== "channel_and_speaker_change"
):
LOGGER.warning(
"DeprecationWarning: Speaker Change Detection has been deprecated "
"and will not be supported in future versions of this package."
Expand Down
5 changes: 4 additions & 1 deletion speechmatics/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,10 @@ async def run(
:raises Exception: Can raise any exception returned by the
consumer/producer tasks.
"""
if transcription_config.speaker_change_sensitivity or transcription_config.diarization == "speaker_change":
if (
transcription_config.speaker_change_sensitivity
or transcription_config.diarization == "speaker_change"
):
LOGGER.warning(
"DeprecationWarning: Speaker Change Detection has been deprecated "
"and will not be supported in future versions of this package."
Expand Down

0 comments on commit 1970a32

Please sign in to comment.