Skip to content

Commit

Permalink
Fix last black issues
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Apr 9, 2024
1 parent 8c94487 commit e32d316
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run_whisper(
best_of=5,
temperature=(0.0, 0.2, 0.4, 0.6, 0.8, 1.0),
language="nl",
word_timestamps=cfg.WHISPER_ASR_SETTINGS.WORD_TIMESTAMPS
word_timestamps=cfg.WHISPER_ASR_SETTINGS.WORD_TIMESTAMPS,
)

segments_to_add = []
Expand All @@ -52,7 +52,7 @@ def run_whisper(
"text": word.word.lstrip(),
"start": word.start,
"end": word.end,
"confidence": word.probability
"confidence": word.probability,
}
)
segments_to_add.append(
Expand All @@ -67,7 +67,7 @@ def run_whisper(
"avg_logprob": segment.avg_logprob,
"compression_ratio": segment.compression_ratio,
"no_speech_prob": segment.no_speech_prob,
"words": words_to_add
"words": words_to_add,
}
)
result = {"segments": segments_to_add}
Expand Down

0 comments on commit e32d316

Please sign in to comment.