use propper bearer authentication to dwnload model

instead of --user username:token
This commit is contained in:
mauwii 2022-10-28 20:41:04 +02:00 committed by Lincoln Stein
parent 4245c9e0cd
commit 1eaa58c970
2 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,8 @@ jobs:
[[ -d models/ldm/stable-diffusion-v1 ]] \
|| mkdir -p models/ldm/stable-diffusion-v1
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|| curl --user "${{ secrets.HUGGINGFACE_TOKEN }}" \
|| curl \
-H "Authorization: Bearer ${{ secrets.HUGGINGFACE_TOKEN }}" \
-o models/ldm/stable-diffusion-v1/model.ckpt \
-O -L https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt

View File

@ -71,7 +71,8 @@ jobs:
[[ -d models/ldm/stable-diffusion-v1 ]] \
|| mkdir -p models/ldm/stable-diffusion-v1
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|| curl --user "${{ secrets.HUGGINGFACE_TOKEN }}" \
|| curl \
-H "Authorization: Bearer ${{ secrets.HUGGINGFACE_TOKEN }}" \
-o models/ldm/stable-diffusion-v1/model.ckpt \
-O -L ${{ matrix.stable-diffusion-model }}