fix: need Content-Type header in smoke test script
This commit is contained in:
parent
0cb89ddc80
commit
4aa8759514
2 changed files with 3 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ curl -s "$host/models"
|
|||
echo
|
||||
|
||||
echo "=== /salience ==="
|
||||
curl -s -X POST -d "The cat sat on the mat. The dog chased the cat." "$host/salience?model=all-mpnet-base-v2"
|
||||
curl -s --data-binary -H "Content-Type: text/plain" "The cat sat on the mat. The dog chased the cat." "$host/salience?model=all-mpnet-base-v2"
|
||||
echo
|
||||
EOH
|
||||
destination = "local/smoke-test.sh"
|
||||
|
|
|
|||
|
|
@ -17,4 +17,5 @@ class timed_import:
|
|||
|
||||
def __exit__(self, *args):
|
||||
elapsed = time.time() - self.start
|
||||
print(f"in {elapsed:.1f}s")
|
||||
sys.stdout.write(f"in {elapsed:.1f}s\n")
|
||||
sys.stdout.flush()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue