Skip to content

Commit

Permalink
Update pip install syntax when installing from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobartt committed Oct 25, 2024
1 parent 08f4738 commit e0cee9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
# Hugging Face Inference Toolkit
ARG HF_INFERENCE_TOOLKIT_VERSION=bump-dependencies
ARG HF_INFERENCE_TOOLKIT_URL=git+https://github.com/huggingface/huggingface-inference-toolkit.git@${HF_INFERENCE_TOOLKIT_VERSION}
RUN pip install --upgrade "${HF_INFERENCE_TOOLKIT_URL}#egg=huggingface-inference-toolkit[torch,diffusers,st,google]" --no-cache-dir
RUN pip install --upgrade "huggingface-inference-toolkit[torch,diffusers,st,google] @ ${HF_INFERENCE_TOOLKIT_URL}" --no-cache-dir

ENV HF_HUB_ENABLE_HF_TRANSFER="1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
# Hugging Face Inference Toolkit
ARG HF_INFERENCE_TOOLKIT_VERSION=bump-dependencies
ARG HF_INFERENCE_TOOLKIT_URL=git+https://github.com/huggingface/huggingface-inference-toolkit.git@${HF_INFERENCE_TOOLKIT_VERSION}
RUN pip install --upgrade "huggingface-inference-toolkit[torch,diffusers,st,google]" @ ${HF_INFERENCE_TOOLKIT_URL} --no-cache-dir
RUN pip install --upgrade "huggingface-inference-toolkit[torch,diffusers,st,google] @ ${HF_INFERENCE_TOOLKIT_URL}" --no-cache-dir

ENV HF_HUB_ENABLE_HF_TRANSFER="1"

Expand Down

0 comments on commit e0cee9b

Please sign in to comment.