Add onnx-djl module: DistilBERT sentiment with ONNX Runtime and DJL, batching and a Spring Boot endpoint with measured latency
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G8ikz8xdWuTP5yun8DZ1hk
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
POST /sentiment
|
||||
{"texts":["I loved this film, the acting was wonderful.","The service was slow and the food arrived cold."]}
|
||||
|
||||
HTTP 200
|
||||
{
|
||||
"results" : [ {
|
||||
"label" : "POSITIVE",
|
||||
"score" : 0.9998835686297906
|
||||
}, {
|
||||
"label" : "NEGATIVE",
|
||||
"score" : 0.9997554818864473
|
||||
} ]
|
||||
}
|
||||
|
||||
Empty list: HTTP 400
|
||||
65 texts (limit is 64): HTTP 400
|
||||
Reference in New Issue
Block a user