@@ -56,8 +56,35 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
}}, | }}, | ||||
{ label: "课程名称", name: "Name", width: 100, align: "left"}, | { label: "课程名称", name: "Name", width: 100, align: "left"}, | ||||
{ label: "视频", name: "VideoPath", width: 100, align: "left"}, | |||||
{ label: "视频封面", name: "PicPath", width: 100, align: "left"}, | |||||
{ | |||||
label: "视频", name: "VideoPath", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', | |||||
{ | |||||
url: '/LR_SystemModule/Annexes/GetAnnexesFileList?folderId=' + value, | |||||
sync: true, | |||||
callback: function (_data) { | |||||
if (_data.F_FileName) { | |||||
callback('<span onclick="downLoad(\'' + _data['F_Id'] + '\',\'' + value + '\',\'' + $.lrToken + '\')" style="color:blue">' + _data['F_FileName'] + '</span>'); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
label: "视频封面", name: "PicPath", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', | |||||
{ | |||||
url: '/LR_SystemModule/Annexes/GetAnnexesFileList?folderId=' + value, | |||||
sync: true, | |||||
callback: function (_data) { | |||||
if (_data.F_FileName) { | |||||
callback('<span onclick="downLoad(\'' + _data['F_Id'] + '\',\'' + value + '\',\'' + $.lrToken + '\')" style="color:blue">' + _data['F_FileName'] + '</span>'); | |||||
} | |||||
} | |||||
}); | |||||
} }, | |||||
{ label: "AI分析", name: "AIContent", width: 100, align: "left"}, | { label: "AI分析", name: "AIContent", width: 100, align: "left"}, | ||||
], | ], | ||||
mainId:'ID', | mainId:'ID', | ||||
@@ -156,7 +156,7 @@ def get_zaiyao(reportpath): | |||||
"content": file_content, | "content": file_content, | ||||
}, | }, | ||||
{"role": "user", | {"role": "user", | ||||
"content":"上面这个文件是一段教学音频识别出来的Json格式文件,其中bg_time键是一段话的起始时间。现拟将这段教学文字自动解析和提取教学核心内容,生成一段500字以内的文本摘要,概述教学流程(如首先,其次,接着,随后,最后),并使用mm:ss格式标注出在每段话的起始时间点位,用于帮助用户快速把握教学目标、教学内容、教学过程和教学特色。并给出3-5个教学特色关键词(可涉及教学方法、教学内容)。请你以教学评价专家的身份,帮我处理该文件。", | |||||
"content":"上面这个文件是一段教学音频识别出来的Json格式文件,其中bg_time键是一段话的起始时间。现拟将这段教学文字自动解析和提取教学核心内容,生成一段500字以内的文本摘要,概述教学流程(如首先,其次,接着,随后,最后),并使用mm:ss视频起始时间格式在每段话的开始处标注,用于帮助用户快速把握教学目标、教学内容、教学过程和教学特色。并给出3-5个教学特色关键词(可涉及教学方法、教学内容)。请你以教学评价专家的身份,帮我处理该文件。", | |||||
} | } | ||||
] | ] | ||||
@@ -179,9 +179,6 @@ | |||||
<DependentUpon>Web.config</DependentUpon> | <DependentUpon>Web.config</DependentUpon> | ||||
</None> | </None> | ||||
<Content Include="port.png" /> | <Content Include="port.png" /> | ||||
<Content Include="AIAnalysis\test.txt"> | |||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |||||
</Content> | |||||
<Content Include="XmlConfig\database.config"> | <Content Include="XmlConfig\database.config"> | ||||
<SubType>Designer</SubType> | <SubType>Designer</SubType> | ||||
</Content> | </Content> | ||||
@@ -200,7 +200,7 @@ namespace Learun.Application.WebApi.Modules | |||||
parameter.StuNo = userInfo.account; | parameter.StuNo = userInfo.account; | ||||
parameter.CreateTime=DateTime.Now; | parameter.CreateTime=DateTime.Now; | ||||
var file = annexesFileIBLL.GetEntityByFolderId(parameter.VideoPath); | var file = annexesFileIBLL.GetEntityByFolderId(parameter.VideoPath); | ||||
parameter.VideoPath = file.F_Id; | |||||
//parameter.VideoPath = file.F_Id; | |||||
parameter.AIContent = AIAnalysis(file.F_FilePath); | parameter.AIContent = AIAnalysis(file.F_FilePath); | ||||
smartSelfCourseIBLL.SaveEntity("", parameter); | smartSelfCourseIBLL.SaveEntity("", parameter); | ||||
return Success(parameter); | return Success(parameter); | ||||