Skip to content

Commit

Permalink
Update server ip used by client to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfeiBai authored May 7, 2024
1 parent 829f64c commit 037129f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/howto/serving.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ sudo docker run -p 8080:80 \
You can query the model using either the `/generate` or `/generate_stream` routes:

```
curl 127.0.0.1:8080/generate \
curl 0.0.0.0:80/generate \
-X POST \
-d '{"inputs":"What is Deep Learning?","parameters":{"max_new_tokens":20}}' \
-H 'Content-Type: application/json'
```

```
curl 127.0.0.1:8080/generate_stream \
curl 0.0.0.0:80/generate_stream \
-X POST \
-d '{"inputs":"What is Deep Learning?","parameters":{"max_new_tokens":20}}' \
-H 'Content-Type: application/json'
Expand Down

0 comments on commit 037129f

Please sign in to comment.