Skip to content
Discussion options

You must be logged in to vote

안녕하세요.
body를 구성하는 부분은 자동으로 생성해주는 swagger 로는 이해하기 어려운 부분이 있습니다.
해당 내용은 seldon core 공식 문서를 참고하면 좋을 것 같습니다.
공식 문서에 따르면 다음과 같이 작성해야 합니다.

curl -X POST <YOUR PREDICTION URI> \
    -H 'Content-Type: application/json' \
    -d '{
    "data": {
        "ndarray": [
            [ 7, 3.2, 4.7, 1.4 ]
        ],
        "names": [ "sepal length (cm)", "sepal width (cm)", "petal length (cm)", "petal width (cm)" ]
    }
}'

위에 처럼 data안에 ndarray와 names로 입력해주셔야 합니다.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@visionhong
Comment options

@visionhong
Comment options

@Aiden-Jeon
Comment options

@Aiden-Jeon
Comment options

@visionhong
Comment options

Answer selected by visionhong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants