Push users to streaming in the readme. (#1698)

This commit is contained in:
Nicolas Patry 2024-04-05 16:44:10 +02:00 committed by GitHub
parent c7e570e59d
commit 5062fda4ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ docker run --gpus all --shm-size 1g -p 8080:80 -v $volume:/data ghcr.io/huggingf
And then you can make requests like
```bash
curl 127.0.0.1:8080/generate \
curl 127.0.0.1:8080/generate_stream \
-X POST \
-d '{"inputs":"What is Deep Learning?","parameters":{"max_new_tokens":20}}' \
-H 'Content-Type: application/json'