Skip to content

Commit c006a95

Browse files
authored
Fix example server install instructions (huggingface#12362)
* Upgrade huggingface-hub to version 0.35.0 Updated huggingface-hub version from 0.26.1 to 0.35.0. * Add uvicorn and accelerate to requirements * Fix install instructions for server
1 parent df267ee commit c006a95

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

examples/server/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ This guide will show you how to use the [`StableDiffusion3Pipeline`] in a server
99
Start by navigating to the `examples/server` folder and installing all of the dependencies.
1010

1111
```py
12-
pip install .
13-
pip install -f requirements.txt
12+
pip install diffusers
13+
pip install -r requirements.txt
1414
```
1515

1616
Launch the server with the following command.

examples/server/requirements.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ py-consul
66
prometheus_client >= 0.18.0
77
prometheus-fastapi-instrumentator >= 7.0.0
88
fastapi
9-
uvicorn
9+
uvicorn
10+
accelerate

examples/server/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fsspec==2024.10.0
3939
# torch
4040
h11==0.14.0
4141
# via uvicorn
42-
huggingface-hub==0.26.1
42+
huggingface-hub==0.35.0
4343
# via
4444
# tokenizers
4545
# transformers

0 commit comments

Comments
 (0)