Minor clean

This commit is contained in:
niksedk 2023-01-01 15:56:59 +01:00
parent e00157263a
commit b5f743740e
3 changed files with 7 additions and 11 deletions

View File

@ -1,6 +1,5 @@
using System;
using System.IO;
using System.Linq;
namespace Nikse.SubtitleEdit.Core.AudioToText
{
@ -107,6 +106,6 @@ namespace Nikse.SubtitleEdit.Core.AudioToText
UrlPrimary = "https://openaipublic.azureedge.net/main/whisper/models/81f7c96c852ee8fc832187b0132e569d6c3065a3252ed18e56effd0b6a73e524/large-v2.pt",
UrlSecondary = "https://openaipublic.azureedge.net/main/whisper/models/81f7c96c852ee8fc832187b0132e569d6c3065a3252ed18e56effd0b6a73e524/large-v2.pt",
},
}.ToArray();
};
}
}

View File

@ -1,11 +1,10 @@
using System;
using System.IO;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Core.AudioToText;
using Nikse.SubtitleEdit.Core.AudioToText;
using Nikse.SubtitleEdit.Core.Common;
using Nikse.SubtitleEdit.Logic;
using System;
using System.IO;
using System.Threading;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms.AudioToText
{
@ -14,7 +13,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
public bool AutoClose { get; internal set; }
public WhisperModel LastDownloadedModel { get; private set; }
private readonly CancellationTokenSource _cancellationTokenSource;
private bool _error = false;
private bool _error;
private string _downloadFileName;
public WhisperModelDownload()

View File

@ -25796,8 +25796,6 @@ namespace Nikse.SubtitleEdit.Forms
}
private string _lastWrittenAutoBackup = string.Empty;
private bool _showAutoBackupError = true;
private void TimerAutoBackupTick(object sender, EventArgs e)
{
string currentText = string.Empty;