Skip to content

Commit

Permalink
flake8 alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmejia committed May 5, 2024
1 parent 5296ffa commit cd2c1bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/utils/transcription/alignment_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ def get_realigned_ws_mapping_with_punctuation(
list: List of dictionaries containing the word, speaker, start_time, and end_time.
"""


def is_word_sentence_end(x):
return (
x >= 0
Expand Down Expand Up @@ -268,7 +267,7 @@ def get_sentences_speaker_mapping(word_speaker_mapping, speaker_timestamps):
Args:
word_speaker_mapping (list): List of dictionaries containing the word, speaker, start_time, and end_time.
speaker_timestamps (list): List of tuples containing the start_time, end_time, and speaker.
Returns:
list: List of dictionaries containing the speaker, start_time, end_time, and text.
"""
Expand Down Expand Up @@ -462,5 +461,4 @@ def process_language_arg(language: str, model_name: str):
f"{model_name} is an English-only model but received '{language}'; using English instead."
)
language = "en"
return language

return language

0 comments on commit cd2c1bd

Please sign in to comment.