You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

new.tmpl 23 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. {{template "base/head" .}}
  2. <style>
  3. .unite {
  4. font-family: SourceHanSansSC-medium !important;
  5. color: rgba(16, 16, 16, 100) !important;
  6. }
  7. .title {
  8. font-size: 16px !important;
  9. padding-left: 3rem !important;
  10. }
  11. .min_title {
  12. font-size: 14px !important;
  13. padding-left: 6rem !important;
  14. margin-bottom: 2rem !important;
  15. }
  16. .width {
  17. width: 100% !important;
  18. }
  19. .width80 {
  20. width: 80.7% !important;
  21. margin-left: 10px;
  22. }
  23. .width806 {
  24. width: 80.6% !important;
  25. margin-left: -2px;
  26. }
  27. .width85 {
  28. width: 85% !important;
  29. margin-left: 4.5rem !important;
  30. }
  31. .width81 {
  32. margin-left: 1.5rem !important;
  33. width: 81% !important;
  34. }
  35. .add {
  36. font-size: 18px;
  37. padding: 0.5rem;
  38. border: 1px solid rgba(187, 187, 187, 100);
  39. border-radius: 0px 5px 5px 0px;
  40. line-height: 21px;
  41. text-align: center;
  42. color: #C2C7CC;
  43. }
  44. .min {
  45. font-size: 18px;
  46. padding: 0.5rem;
  47. border: 1px solid rgba(187, 187, 187, 100);
  48. border-radius: 5px 0px 0px 5px;
  49. line-height: 21px;
  50. text-align: center;
  51. color: #C2C7CC;
  52. }
  53. </style>
  54. <!-- <div class="ui page dimmer">
  55. <div class="ui text loader">{{.i18n.Tr "loading"}}</div>
  56. </div> -->
  57. <div id="mask">
  58. <div id="loadingPage">
  59. <div class="rect1"></div>
  60. <div class="rect2"></div>
  61. <div class="rect3"></div>
  62. <div class="rect4"></div>
  63. <div class="rect5"></div>
  64. </div>
  65. </div>
  66. <div class="repository">
  67. {{template "repo/header" .}}
  68. <div class="ui container">
  69. {{template "base/alert" .}}
  70. <h4 class="ui top attached header">
  71. {{.i18n.Tr "repo.modelarts.train_job.new"}}
  72. </h4>
  73. <div class="ui attached segment">
  74. <!-- equal width -->
  75. <form class="ui form" action="{{.Link}}" method="post">
  76. {{.CsrfTokenHtml}}
  77. <input type="hidden" name="action" value="update">
  78. <input type="hidden" id="ai_engine_name" name="engine_names" value="">
  79. <input type="hidden" id="ai_flaver_name" name="flaver_names" value="">
  80. <h4 class="unite title ui header ">{{.i18n.Tr "repo.modelarts.train_job.basic_info"}}:</h4>
  81. <div class="required unite min_title inline field">
  82. <label style="font-weight: normal;">{{.i18n.Tr "cloudbrain.resource_cluster"}}</label>
  83. <div class="ui blue mini menu compact selectcloudbrain">
  84. <a class="active item" href="{{.RepoLink}}/cloudbrain/train-job/create">
  85. <svg class="svg" sxmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-2.29-2.333A17.9 17.9 0 0 1 8.027 13H4.062a8.008 8.008 0 0 0 5.648 6.667zM10.03 13c.151 2.439.848 4.73 1.97 6.752A15.905 15.905 0 0 0 13.97 13h-3.94zm9.908 0h-3.965a17.9 17.9 0 0 1-1.683 6.667A8.008 8.008 0 0 0 19.938 13zM4.062 11h3.965A17.9 17.9 0 0 1 9.71 4.333 8.008 8.008 0 0 0 4.062 11zm5.969 0h3.938A15.905 15.905 0 0 0 12 4.248 15.905 15.905 0 0 0 10.03 11zm4.259-6.667A17.9 17.9 0 0 1 15.973 11h3.965a8.008 8.008 0 0 0-5.648-6.667z"></path></svg>
  86. {{.i18n.Tr "cloudbrain.resource_cluster_openi"}}
  87. </a>
  88. <a class="item" href="{{.RepoLink}}/grampus/train-job/npu/create">
  89. <svg class="svg" sxmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-2.29-2.333A17.9 17.9 0 0 1 8.027 13H4.062a8.008 8.008 0 0 0 5.648 6.667zM10.03 13c.151 2.439.848 4.73 1.97 6.752A15.905 15.905 0 0 0 13.97 13h-3.94zm9.908 0h-3.965a17.9 17.9 0 0 1-1.683 6.667A8.008 8.008 0 0 0 19.938 13zM4.062 11h3.965A17.9 17.9 0 0 1 9.71 4.333 8.008 8.008 0 0 0 4.062 11zm5.969 0h3.938A15.905 15.905 0 0 0 12 4.248 15.905 15.905 0 0 0 10.03 11zm4.259-6.667A17.9 17.9 0 0 1 15.973 11h3.965a8.008 8.008 0 0 0-5.648-6.667z"></path></svg>
  90. {{.i18n.Tr "cloudbrain.resource_cluster_c2net"}}(Beta)
  91. </a>
  92. </div>
  93. </div>
  94. <div class="required unite min_title inline field">
  95. <label style="font-weight: normal;">{{.i18n.Tr "cloudbrain.compute_resource"}}</label>
  96. <div class="ui blue mini menu compact selectcloudbrain">
  97. <a class="active item" href="{{.RepoLink}}/cloudbrain/train-job/create">
  98. <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16"
  99. height="16">
  100. <path fill="none" d="M0 0h24v24H0z" />
  101. <path
  102. d="M3 2.992C3 2.444 3.445 2 3.993 2h16.014a1 1 0 0 1 .993.992v18.016a.993.993 0 0 1-.993.992H3.993A1 1 0 0 1 3 21.008V2.992zM19 11V4H5v7h14zm0 2H5v7h14v-7zM9 6h6v2H9V6zm0 9h6v2H9v-2z" />
  103. </svg>
  104. CPU/GPU
  105. </a>
  106. <a class="item" href="{{.RepoLink}}/modelarts/train-job/create">
  107. <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16"
  108. height="16">
  109. <path fill="none" d="M0 0h24v24H0z" />
  110. <path
  111. d="M3 2.992C3 2.444 3.445 2 3.993 2h16.014a1 1 0 0 1 .993.992v18.016a.993.993 0 0 1-.993.992H3.993A1 1 0 0 1 3 21.008V2.992zM19 11V4H5v7h14zm0 2H5v7h14v-7zM9 6h6v2H9V6zm0 9h6v2H9v-2z" />
  112. </svg>
  113. Ascend NPU</a>
  114. </div>
  115. </div>
  116. <div class="required unite min_title inline field">
  117. <label style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.job_name"}}</label>
  118. <input style="width: 60%;" name="display_job_name" id="display_job_name"
  119. placeholder={{.i18n.Tr "repo.modelarts.train_job.job_name"}} value="{{.display_job_name}}"
  120. tabindex="3" onkeyup="this.value=this.value.replace(/[, ]/g,'')" autofocus required
  121. maxlength="64">
  122. <span class="tooltips" style="display: block;">{{.i18n.Tr "cloudbrain.job_name_rule"}}</span>
  123. </div>
  124. <div class="unite min_title inline field">
  125. <label style="font-weight: normal;"
  126. for="description">{{.i18n.Tr "repo.modelarts.train_job.description"}}&nbsp;&nbsp;</label>
  127. <textarea style="width: 80%;" id="description" name="description" rows="3" maxlength="255"
  128. placeholder={{.i18n.Tr "repo.modelarts.train_job.new_place"}}
  129. onchange="this.value=this.value.substring(0, 255)"
  130. onkeydown="this.value=this.value.substring(0, 255)"
  131. onkeyup="this.value=this.value.substring(0, 255)"></textarea>
  132. </div>
  133. <div class="ui divider"></div>
  134. <h4 class="unite title ui header ">{{.i18n.Tr "repo.modelarts.train_job.parameter_setting"}}:</h4>
  135. <div class="required unite min_title inline field">
  136. <label style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.code_version"}}</label>
  137. <select class="ui dropdown width80 left2" id="code_version" name="branch_name">
  138. {{if .branch_name}}
  139. <option name="branch_name" value="{{.branch_name}}">{{.branch_name}}</option>
  140. {{range $k, $v :=.Branches}}
  141. {{ if ne $v $.branch_name }}
  142. <option name="branch_name" value="{{$v}}">{{$v}}</option>
  143. {{end}}
  144. {{end}}
  145. {{else}}
  146. <option name="branch_name" value="{{.branchName}}">{{.branchName}}</option>
  147. {{range $k, $v :=.Branches}}
  148. {{ if ne $v $.branchName }}
  149. <option name="branch_name" value="{{$v}}">{{$v}}</option>
  150. {{end}}
  151. {{end}}
  152. {{end}}
  153. </select>
  154. </div>
  155. <div class="inline required field" style="display: none;">
  156. <label>{{.i18n.Tr "cloudbrain.task_type"}}</label>
  157. <select id="cloudbrain_job_type" class="ui search dropdown" placeholder="选择任务类型" style='width:385px'
  158. name="job_type">
  159. <option name="job_type" value="TRAIN">TRAIN</option>
  160. </select>
  161. </div>
  162. <div class="required unite min_title inline field">
  163. <label style="font-weight: normal;">{{.i18n.Tr "cloudbrain.gpu_type"}}</label>
  164. <select id="cloudbrain_gpu_type" class="ui search width806 dropdown" placeholder="选择GPU类型"
  165. style='width:385px' name="gpu_type">
  166. {{range .train_gpu_types}}
  167. <option value="{{.Queue}}">{{.Value}}</option>
  168. {{end}}
  169. </select>
  170. </div>
  171. <!-- <div class="required unite min_title inline field" style="position: relative;">
  172. <label style="font-weight: normal;">{{.i18n.Tr "cloudbrain.mirror"}}&nbsp;</label>
  173. <input class="width81" type="text" list="cloudbrain_image" placeholder="{{.i18n.Tr "cloudbrain.choose_mirror"}}" name="image" required autofocus maxlength="255">
  174. <i class="times circle outline icon icons" style="visibility: hidden;" onclick="clearValue()"></i>
  175. <datalist class="ui search" id="cloudbrain_image" name="image">
  176. {{range .images}}
  177. <option name="image" value="{{.Place}}">{{.PlaceView}}</option>
  178. {{end}}
  179. {{range .public_images}}
  180. <option name="image" value="{{.Place}}">{{.PlaceView}}</option>
  181. {{end}}
  182. </datalist>
  183. </div> -->
  184. <div id="images-new-cb">
  185. </div>
  186. <div class="inline unite min_title field required">
  187. <label style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.start_file"}}</label>
  188. {{if .bootFile}}
  189. <input style="width: 48.5%;" name="boot_file" id="trainjob_boot_file" value="{{.bootFile}}"
  190. tabindex="3" autofocus required maxlength="255">
  191. {{else}}
  192. <input style="width: 48.5%;" name="boot_file" id="trainjob_boot_file" value="" tabindex="3"
  193. autofocus required maxlength="255">
  194. {{end}}
  195. <span>
  196. <i class="question circle icon link"
  197. data-content={{.i18n.Tr "repo.modelarts.train_job.boot_file_helper"}}
  198. data-position="right center" data-variation="mini"></i>
  199. </span>
  200. <a href="https://git.openi.org.cn/OpenIOSSG/MNIST_PytorchExample_GPU" target="_blank">查看样例</a>
  201. </div>
  202. {{template "custom/select_dataset_train" .}}
  203. <span class="tooltips"
  204. style="margin-left: 11.5rem;margin-bottom: 2rem;">训练脚本存储在/code中,数据集存储在/dataset中,训练输出请存储在/model中以供后续下载。</span>
  205. <div class="inline unite min_title field">
  206. <label style="font-weight: normal;">{{.i18n.Tr "repo.modelarts.train_job.run_parameter"}}</label>
  207. <span id="add_run_para"
  208. style="margin-left: 0.5rem;cursor:pointer;color: rgba(3, 102, 214, 100);font-size: 14px;line-height: 26px;font-family: SourceHanSansSC-medium;"><i
  209. class="plus square outline icon"></i>{{.i18n.Tr "repo.modelarts.train_job.add_run_parameter"}}</span>
  210. <input id="store_run_para" type="hidden" name="run_para_list">
  211. <div class="dynamic field" style="margin-top: 1rem;">
  212. {{if .params}}
  213. {{if ne 0 (len .params)}}
  214. {{range $k ,$v := .params}}
  215. <div class="two fields width85" id="para{{$k}}">
  216. <div class="field">
  217. <input type="text" name="shipping_first-name" value={{$v.Label}} required>
  218. </div>
  219. <div class="field">
  220. <input type="text" name="shipping_last-name" value={{$v.Value}} required>
  221. </div>
  222. <span>
  223. <i class="trash icon"></i>
  224. </span>
  225. </div>
  226. {{end}}
  227. {{end}}
  228. {{end}}
  229. </div>
  230. </div>
  231. <div class="required inline unite min_title field">
  232. <label style="font-weight: normal;">{{.i18n.Tr "cloudbrain.resource_specification"}}</label>
  233. <select id="cloudbrain_resource_spec" class="ui search dropdown" placeholder="选择资源规格"
  234. style='width:385px' name="resource_spec_id">
  235. {{range .train_resource_specs}}
  236. <option name="resource_spec_id" value="{{.Id}}">
  237. GPU数:{{.GpuNum}},CPU数:{{.CpuNum}},内存(MB):{{.MemMiB}},共享内存(MB):{{.ShareMemMiB}}</option>
  238. {{end}}
  239. </select>
  240. </div>
  241. <div class="inline unite min_title field">
  242. <button class="ui create_train_job green button">
  243. {{.i18n.Tr "repo.cloudbrain.new"}}
  244. </button>
  245. <a class="ui button"
  246. href="{{.RepoLink}}/modelarts/train-job">{{.i18n.Tr "repo.cloudbrain.cancel"}}</a>
  247. </div>
  248. <!-- 模态框 -->
  249. </form>
  250. </div>
  251. </div>
  252. </div>
  253. {{template "base/footer" .}}
  254. <script>
  255. //let url_href = window.location.pathname.split('create')[0]
  256. //$(".ui.button").attr('href',url_href)
  257. $('select.dropdown')
  258. .dropdown();
  259. $('.menu .item')
  260. .tab();
  261. let sever_num = $('#trainjob_work_server_num')
  262. $('.add').click(function () {
  263. sever_num.val(parseInt(sever_num.val()) + 1)
  264. if (sever_num.val() >= 26) {
  265. sever_num.val(parseInt(sever_num.val()) - 1)
  266. }
  267. })
  268. $('.min').click(function () {
  269. sever_num.val(parseInt(sever_num.val()) - 1)
  270. if (sever_num.val() <= 0) {
  271. sever_num.val(parseInt(sever_num.val()) + 1)
  272. }
  273. })
  274. // 参数增加、删除、修改、保存
  275. function Add_parameter(i) {
  276. value = '<div class="two fields width85" id= "para' + i + '">' +
  277. '<div class="field">' +
  278. '<input type="text" name="shipping_first-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_name"}}> ' +
  279. '</div> ' +
  280. '<div class="field"> ' +
  281. '<input type="text" name="shipping_last-name" required placeholder={{.i18n.Tr "repo.modelarts.train_job.parameter_value"}}>' +
  282. '</div>' +
  283. '<span>' +
  284. '<i class="trash icon">' +
  285. '</i>' +
  286. '</span>' +
  287. '</div>'
  288. $(".dynamic.field").append(value)
  289. }
  290. $('#add_run_para').click(function () {
  291. var len = $(".dynamic.field .two.fields").length
  292. Add_parameter(len)
  293. });
  294. $(".dynamic.field").on("click", ".trash.icon", function () {
  295. var index = $(this).parent().parent().index()
  296. $(this).parent().parent().remove()
  297. var len = $(".dynamic.field .two.fields").length
  298. $(".dynamic.field .two.fields").each(function () {
  299. var cur_index = $(this).index()
  300. $(this).attr('id', 'para' + cur_index)
  301. })
  302. });
  303. $('.ui.parameter.green.button').click(function () {
  304. var parameters = [];
  305. $('table tr').each(function () {
  306. $(this).find('td:eq(1)').each(function () {
  307. parameters.push($(this).text());
  308. })
  309. $(this).find('input').each(function () {
  310. parameters.push($(this).text())
  311. })
  312. });
  313. $('.ui.parameter.modal')
  314. .modal('hide');
  315. for (var i = 2; i < parameters.length; i++) {
  316. switch (i) {
  317. // 数据集uuid待完成
  318. // case (2):
  319. // console.log(1)
  320. // break;
  321. // $("#trainjob_datasets").val(parameters[i]);
  322. // console.log($("#trainjob_datasets").val())
  323. case (3):
  324. $("input[name='boot_file']").val(parameters[i]);
  325. break;
  326. case (4):
  327. var para = parameters[i].split(" ")
  328. for (var j = 0; j < para.length; j++) {
  329. var para_name = para[j].split('=')[0]
  330. var para_value = para[j].split('=')[1]
  331. var len = $(".dynamic.field .two.fields").length
  332. Add_parameter(len)
  333. var pid = 'para' + len
  334. $(".dynamic.field" + " #" + pid + "").find("input[name=shipping_first-name]").val(para_name)
  335. $(".dynamic.field" + " #" + pid + "").find("input[name=shipping_last-name]").val(para_value)
  336. }
  337. break;
  338. // 数据集pool_id待完成
  339. // case (5):
  340. // $("select[name='pool_id']").val(parameters[i]);
  341. // break;
  342. case (6):
  343. $("input[name='work_server_number']").val(parameters[i]);
  344. break;
  345. }
  346. }
  347. })
  348. $('.ui.save.checkbox').click(function () {
  349. $(this).checkbox({
  350. onChange: function () {
  351. if ($('.ui.save.checkbox').checkbox('is checked')) {
  352. $('#save_para').removeClass("disabled")
  353. } else {
  354. $('#save_para').addClass("disabled")
  355. }
  356. }
  357. });
  358. })
  359. $('.question.circle.icon').hover(function () {
  360. $(this).popup('show')
  361. });
  362. $(".item.active.parameter_config").click(function () {
  363. $('.ui.parameter.modal')
  364. .modal('setting', 'closable', false)
  365. .modal('show');
  366. })
  367. $('.ui.deny.button').click(function () {
  368. $('.ui.parameter.modal')
  369. .modal('hide');
  370. })
  371. $('select.dropdown')
  372. .dropdown();
  373. function validate() {
  374. $('.ui.form')
  375. .form({
  376. on: 'blur',
  377. fields: {
  378. boot_file: {
  379. identifier: 'boot_file',
  380. rules: [
  381. {
  382. type: 'regExp[/.+\.py$/g]',
  383. }
  384. ]
  385. },
  386. display_job_name: {
  387. identifier: 'display_job_name',
  388. rules: [
  389. {
  390. type: 'regExp[/^[a-zA-Z0-9-_]{1,64}[a-zA-Z0-9_]$/]',
  391. }
  392. ]
  393. },
  394. attachment: {
  395. identifier: 'attachment',
  396. rules: [
  397. {
  398. type: 'empty',
  399. }
  400. ]
  401. },
  402. work_server_number: {
  403. identifier: 'work_server_number',
  404. rules: [
  405. {
  406. type: 'integer[1..25]',
  407. }
  408. ]
  409. },
  410. branch_name: {
  411. identifier: 'branch_name',
  412. rules: [
  413. {
  414. type: 'empty',
  415. }
  416. ]
  417. }
  418. },
  419. onSuccess: function () {
  420. // $('.ui.page.dimmer').dimmer('show')
  421. document.getElementById("mask").style.display = "block"
  422. },
  423. onFailure: function (e) {
  424. return false;
  425. }
  426. })
  427. }
  428. document.onreadystatechange = function () {
  429. if (document.readyState === "complete") {
  430. document.getElementById("mask").style.display = "none"
  431. }
  432. }
  433. function send_run_para() {
  434. var run_parameters = []
  435. var msg = {}
  436. $(".dynamic.field .two.fields").each(function () {
  437. var para_name = $(this).find('input[name=shipping_first-name]').val()
  438. var para_value = $(this).find('input[name=shipping_last-name]').val()
  439. run_parameters.push({ "label": para_name, "value": para_value })
  440. })
  441. msg["parameter"] = run_parameters
  442. msg = JSON.stringify(msg)
  443. $('#store_run_para').val(msg)
  444. }
  445. function get_name() {
  446. let name1 = $("#engine_name .text").text()
  447. let name2 = $("#flaver_name .text").text()
  448. $("input#ai_engine_name").val(name1)
  449. $("input#ai_flaver_name").val(name2)
  450. }
  451. $('.ui.create_train_job.green.button').click(function (e) {
  452. get_name()
  453. send_run_para()
  454. validate()
  455. })
  456. </script>