Skip to content

Commit 10413df

Browse files
committed
Update README
1 parent 0ccb8dd commit 10413df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,10 @@ curl 'http://localhost:8501/v1/models/sqli_model/versions/3:predict' -X POST -H
103103
# Or you can use the following one-liner:
104104
curl -s 'http://localhost:8501/v1/models/sqli_model/versions/3:predict' -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' --data-raw '{"inputs":['$(curl -s 'http://localhost:8000/tokenize_and_sequence' -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' --data-raw '{"query":"select * from users where id = 1 or 1=1"}' | jq -c .tokens)']}' | jq
105105
```
106+
107+
#### Model metadata
108+
109+
```bash
110+
# Get the model metadata
111+
curl -X GET 'http://localhost:8501/v1/models/sqli_model/versions/3/metadata'
112+
```

0 commit comments

Comments
 (0)