stable-generate: fix curl usage
This commit is contained in:
parent
cb63f7b6c5
commit
e533d64f1f
@ -18,7 +18,7 @@ pkgs.writers.writeBashBin "stable-generate" ''
|
|||||||
filename=$(mktemp)
|
filename=$(mktemp)
|
||||||
curl -Ssf "$STABLE_URL/sdapi/v1/txt2img" \
|
curl -Ssf "$STABLE_URL/sdapi/v1/txt2img" \
|
||||||
-X POST \
|
-X POST \
|
||||||
--Header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--data "$PAYLOAD" |
|
--data "$PAYLOAD" |
|
||||||
jq -r '.images[0]' |
|
jq -r '.images[0]' |
|
||||||
base64 --decode > "$filename"
|
base64 --decode > "$filename"
|
||||||
|
Loading…
Reference in New Issue
Block a user