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
parent 104466f5c0
commit b78d718357
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB
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 }}