Quellcode durchsuchen

修改文件id为文件夹id,优化ai分析python程序

西昌分支
王晓寒 vor 1 Woche
Ursprung
Commit
cf69e5fc5b
4 geänderte Dateien mit 31 neuen und 7 gelöschten Zeilen
  1. +29
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SmartSelfCourse/Index.js
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/AIAnalysis/aizy.py
  3. +0
    -3
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs

+ 29
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/SmartSelfCourse/Index.js Datei anzeigen

@@ -56,8 +56,35 @@ var bootstrap = function ($, learun) {
});
}},
{ 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"},
],
mainId:'ID',


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/AIAnalysis/aizy.py Datei anzeigen

@@ -156,7 +156,7 @@ def get_zaiyao(reportpath):
"content": file_content,
},
{"role": "user",
"content":"上面这个文件是一段教学音频识别出来的Json格式文件,其中bg_time键是一段话的起始时间。现拟将这段教学文字自动解析和提取教学核心内容,生成一段500字以内的文本摘要,概述教学流程(如首先,其次,接着,随后,最后),并使用mm:ss格式标注出在每段话的起始时间点位,用于帮助用户快速把握教学目标、教学内容、教学过程和教学特色。并给出3-5个教学特色关键词(可涉及教学方法、教学内容)。请你以教学评价专家的身份,帮我处理该文件。",
"content":"上面这个文件是一段教学音频识别出来的Json格式文件,其中bg_time键是一段话的起始时间。现拟将这段教学文字自动解析和提取教学核心内容,生成一段500字以内的文本摘要,概述教学流程(如首先,其次,接着,随后,最后),并使用mm:ss视频起始时间格式在每段话的开始处标注,用于帮助用户快速把握教学目标、教学内容、教学过程和教学特色。并给出3-5个教学特色关键词(可涉及教学方法、教学内容)。请你以教学评价专家的身份,帮我处理该文件。",
}
]


+ 0
- 3
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj Datei anzeigen

@@ -179,9 +179,6 @@
<DependentUpon>Web.config</DependentUpon>
</None>
<Content Include="port.png" />
<Content Include="AIAnalysis\test.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="XmlConfig\database.config">
<SubType>Designer</SubType>
</Content>


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SmartEducationApi.cs Datei anzeigen

@@ -200,7 +200,7 @@ namespace Learun.Application.WebApi.Modules
parameter.StuNo = userInfo.account;
parameter.CreateTime=DateTime.Now;
var file = annexesFileIBLL.GetEntityByFolderId(parameter.VideoPath);
parameter.VideoPath = file.F_Id;
//parameter.VideoPath = file.F_Id;
parameter.AIContent = AIAnalysis(file.F_FilePath);
smartSelfCourseIBLL.SaveEntity("", parameter);
return Success(parameter);


Laden…
Abbrechen
Speichern