Skip to content

Commit 3ede124

Browse files
Update README with server metrics generation instructions
Added instructions to ping the server for metrics generation.
1 parent da36606 commit 3ede124

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ if __name__ == "__main__":
149149
server = ls.LitServer(InferenceEngine(max_batch_size=1), accelerator="auto")
150150
server.run(port=8000)
151151
```
152+
153+
Ping the server from the terminal to have it generate some metrics
154+
```bash
155+
curl -X POST http://127.0.0.1:8000/predict -H "Content-Type: application/json" -d '{"input": 4.0}'
156+
curl -X POST http://127.0.0.1:8000/predict -H "Content-Type: application/json" -d '{"input": 5.5}'
157+
curl -X POST http://127.0.0.1:8000/predict -H "Content-Type: application/json" -d '{"input": 2.1}'
158+
```
159+
152160
</details>
153161

154162
<details>

0 commit comments

Comments
 (0)