屏蔽 无用日志
This commit is contained in:
parent
4f48553afd
commit
ecca0751ef
|
|
@ -219,7 +219,7 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek
|
|||
$"`{nowCaptionStr}`" +
|
||||
$"字幕结束。" +
|
||||
$"最后请确保输出字幕条数与输入字幕条数一致!!! 如果不一致则重新优化并且确保字幕条数一致!!!!";
|
||||
Console.WriteLine(DateTime.Now + $"=>{taskInfo.Id}字幕优化 分段{s}开始...");
|
||||
//Console.WriteLine(DateTime.Now + $"=>{taskInfo.Id}字幕优化 分段{s}开始...");
|
||||
var resData = await ChatAsync<string[]>(taskInfo.Id.ToString(), postMessages, "优化字幕", "deepseek-chat", 3000);
|
||||
if (resData.Count() != cArr.Count())
|
||||
{
|
||||
|
|
@ -232,11 +232,11 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek
|
|||
End = captionsArr[spanCount * s + i].End,
|
||||
Text = text,
|
||||
}));
|
||||
Console.WriteLine(DateTime.Now + $"=>{taskInfo.Id}字幕优化 分段{s}完成√ ");
|
||||
//Console.WriteLine(DateTime.Now + $"=>{taskInfo.Id}字幕优化 分段{s}完成√ ");
|
||||
return;
|
||||
});
|
||||
var res = newCaptionsList.OrderBy(s => s.Start).ToArray();
|
||||
Console.WriteLine(DateTime.Now + $"=>字幕优化执行完成");
|
||||
//Console.WriteLine(DateTime.Now + $"=>字幕优化执行完成");
|
||||
var jsonData = res.ToJson();
|
||||
await videoTaskDB.AsUpdateable()
|
||||
.SetColumns(it => it.CaptionsAI == jsonData)
|
||||
|
|
|
|||
Loading…
Reference in New Issue