Browse Source

提交代码,增加模型框架选项。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2480/head
zouap 3 years ago
parent
commit
09493ee7b5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      templates/repo/modelmanage/index.tmpl

+ 2
- 2
templates/repo/modelmanage/index.tmpl View File

@@ -323,7 +323,7 @@
$('#choice_Engine .default.text').text(selectedText) $('#choice_Engine .default.text').text(selectedText)
$('#choice_Engine input[name="Engine"]').val(selectedValue) $('#choice_Engine input[name="Engine"]').val(selectedValue)
$("#job-Engine").append(itemHtml); $("#job-Engine").append(itemHtml);
$("#job-Engine").css('disabled','disabled')
$("#choice_version").css('disabled','disabled')
}else{ }else{
let itemHtml = "<option class=\"active item\" data-value=\"0\">Pytorch</option>"; let itemHtml = "<option class=\"active item\" data-value=\"0\">Pytorch</option>";
itemHtml += "<option class=\"item\" data-value=\"1\">TensorFlow</option>" itemHtml += "<option class=\"item\" data-value=\"1\">TensorFlow</option>"
@@ -332,7 +332,7 @@
$('#choice_Engine .default.text').text("Pytorch"); $('#choice_Engine .default.text').text("Pytorch");
$('#choice_Engine input[name="Engine"]').val(0) $('#choice_Engine input[name="Engine"]').val(0)
$("#job-Engine").append(itemHtml); $("#job-Engine").append(itemHtml);
$("#job-Engine").removeAttr('disabled');
$("#choice_version").removeAttr('disabled');
} }
} }
</script> </script>


Loading…
Cancel
Save