|
|
@@ -108,7 +108,6 @@ func CloudBrainNew(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
for i, payload := range resultPublic.Payload.ImageInfo { |
|
|
|
log.Info(resultPublic.Payload.ImageInfo[i].Place) |
|
|
|
if strings.HasPrefix(resultPublic.Payload.ImageInfo[i].Place, "192.168") { |
|
|
|
resultPublic.Payload.ImageInfo[i].PlaceView = payload.Place[strings.Index(payload.Place, "/"):len(payload.Place)] |
|
|
|
} else { |
|
|
@@ -131,6 +130,10 @@ func CloudBrainNew(ctx *context.Context) { |
|
|
|
ctx.Data["model_path"] = cloudbrain.ModelMountPath |
|
|
|
ctx.Data["benchmark_path"] = cloudbrain.BenchMarkMountPath |
|
|
|
ctx.Data["is_benchmark_enabled"] = setting.IsBenchmarkEnabled |
|
|
|
|
|
|
|
var categories *models.Categories |
|
|
|
json.Unmarshal([]byte(setting.BenchmarkCategory), &categories) |
|
|
|
ctx.Data["benchmark_categories"] = categories.Category |
|
|
|
ctx.Data["snn4imagenet_path"] = cloudbrain.Snn4imagenetMountPath |
|
|
|
ctx.Data["is_snn4imagenet_enabled"] = setting.IsSnn4imagenetEnabled |
|
|
|
ctx.HTML(200, tplCloudBrainNew) |
|
|
|