File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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:
104104curl -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+ ```
You can’t perform that action at this time.
0 commit comments