stable-generate: fix curl usage

This commit is contained in:
lassulus 2024-03-06 11:28:00 +01:00
parent cb63f7b6c5
commit e533d64f1f

View File

@ -18,7 +18,7 @@ pkgs.writers.writeBashBin "stable-generate" ''
filename=$(mktemp)
curl -Ssf "$STABLE_URL/sdapi/v1/txt2img" \
-X POST \
--Header 'Content-Type: application/json' \
--header 'Content-Type: application/json' \
--data "$PAYLOAD" |
jq -r '.images[0]' |
base64 --decode > "$filename"