mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 20:22:41 +01:00
Refactor logging and transcript check in WhisperAudioToText
Simplify the logic by reordering logging updates and transcript checks. This removes redundant `UpdateLog` and `SeLogger.WhisperInfo` calls, streamlining the flow and maintaining the existing functionality. Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
This commit is contained in:
parent
5fd050a1b8
commit
5c9346c32c
@ -560,17 +560,12 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
|
||||
Configuration.Settings.Tools.WhisperPostProcessingFixShortDuration,
|
||||
Configuration.Settings.Tools.WhisperPostProcessingSplitLines);
|
||||
|
||||
UpdateLog();
|
||||
SeLogger.WhisperInfo(textBoxLog.Text);
|
||||
if (transcript == null || transcript.Paragraphs.Count == 0)
|
||||
{
|
||||
UpdateLog();
|
||||
SeLogger.WhisperInfo(textBoxLog.Text);
|
||||
IncompleteModelName = comboBoxModels.Text;
|
||||
}
|
||||
else
|
||||
{
|
||||
UpdateLog();
|
||||
SeLogger.WhisperInfo(textBoxLog.Text);
|
||||
}
|
||||
|
||||
timer1.Stop();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user