Browse Source

add param

tags/v1.22.3.2^2
lewis 3 years ago
parent
commit
4968459aeb
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/cloudbrain/cloudbrain.go
  2. +1
    -1
      routers/repo/cloudbrain.go

+ 1
- 1
modules/cloudbrain/cloudbrain.go View File

@@ -15,7 +15,7 @@ import (
)

const (
Command = `pip3 install jupyterlab==2.2.5 -i https://pypi.tuna.tsinghua.edu.cn/simple;set TEST1=1111;service ssh stop;jupyter lab --no-browser --ip=0.0.0.0 --allow-root --notebook-dir="/code" --port=80 --LabApp.token="" --LabApp.allow_origin="self https://cloudbrain.pcl.ac.cn"`
Command = `pip3 install jupyterlab==2.2.5 -i https://pypi.tuna.tsinghua.edu.cn/simple;service ssh stop;jupyter lab --no-browser --ip=0.0.0.0 --allow-root --notebook-dir="/code" --port=80 --LabApp.token="" --LabApp.allow_origin="self https://cloudbrain.pcl.ac.cn"`
//CommandBenchmark = `echo "start benchmark";python /code/test.py;echo "end benchmark"`
CommandBenchmark = `echo "start benchmark";cd /benchmark && bash run_bk.sh;echo "end benchmark"`
CodeMountPath = "/code"


+ 1
- 1
routers/repo/cloudbrain.go View File

@@ -1461,7 +1461,7 @@ func getTrainJobCommand(form auth.CreateCloudBrainForm) (string, error) {
}

for _, parameter := range parameters.Parameter {
command += "set " + parameter.Label + "=" + parameter.Value + ";"
command += "export " + parameter.Label + "=" + parameter.Value + ";"
}
}



Loading…
Cancel
Save