colbert-xm-for-inference-api / embed_two_chunks.sh
fdurant's picture
feat: add docstring to EndpointHandler.__call__ ; when multiple inputs are sent, the output now also contains a token_list k/v pair for easier human inspection
68b896e
raw
history blame
214 Bytes
#!/bin/sh
set -x
curl \
--request POST \
--url http://localhost:4999 \
--header 'Content-Type: application/json' \
--data '{"inputs": ["Please embed me", "En en en mij ook, alsjeblieft !!!"]}' \
-w "\n"