salience-editor/api/smoke-test.sh

11 lines
264 B
Bash
Executable file

#!/bin/sh
host=http://127.0.0.1:5000
echo "=== /models ==="
curl -s "$host/models"
echo
echo "=== /salience ==="
curl -s -H "Content-Type: text/plain" --data-binary "The cat sat on the mat. The dog chased the cat." "$host/salience?model=all-mpnet-base-v2"
echo