Auto-generated github repository by Ainize Teachable NLP
Using curl
in the terminal:
$ curl --request GET 'https://main-gpt2-train-m-uvo-xt-fxw-lr-qx-ihafl-teachable-ainize.endpoint.ainize.ai/ping'
{
"status": "Healthy"
}
Using curl
in the terminal:
$ curl --request POST 'https://main-gpt2-train-m-uvo-xt-fxw-lr-qx-ihafl-teachable-ainize.endpoint.ainize.ai/predictions/gpt-2-en-small-finetune.mar' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": [3666, 1438, 318, 14200, 11, 314, 16486, 1850, 287, 13851, 3783],
"num_samples": 5,
"length": 8
}'
[
[
3666, 1438, 318, 14200, 11, 314, 16486, 1850, 287, 13851, 3783, 11, 314, 1101, 422, 262, 1294, 11, 523
],
...,
[
3666, 1438, 318, 14200, 11, 314, 16486, 1850, 287, 13851, 3783, 379, 262, 2059, 286, 520, 26414, 11, 543
]
]