Skip to content

Commit 6a11963

Browse files
committed
Modify: getClass - Fix path issue.
1 parent a899a72 commit 6a11963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepsort.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func parseResponse(rawResponse []byte) string {
8383
func getClass(path string, name string) {
8484
url := "http://localhost:8080/predict"
8585
path, _ = filepath.Abs(path)
86-
var jsonStr = []byte(`{"service":"imageserv","parameters":{"input":{"width":224,"height":224},"output":{"best":1},"mllib":{"gpu":false}},"data":["` + "/" + path + `"]}`)
86+
var jsonStr = []byte(`{"service":"imageserv","parameters":{"input":{"width":224,"height":224},"output":{"best":1},"mllib":{"gpu":false}},"data":["` + path + `"]}`)
8787
// DEBUG
8888
//fmt.Println("Request: " + string(jsonStr))
8989
req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr))

0 commit comments

Comments
 (0)