Replies: 1 comment
-
link to code sandbox that isn't working ... but is chattering ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
javascript gives me these header errors
Request URL: https://207a93c8-8d70-4ed7.gradio.live/sdapi/v1/txt2img Request Method: POST Status Code: 422 Remote Address: 44.239.42.24:443 Referrer Policy: strict-origin-when-cross-origin access-control-allow-credentials: true content-length: 88 content-type: application/json date: Fri, 03 Feb 2023 20:11:18 GMT server: uvicorn x-process-time: 0.0009 :authority: 207a93c8-8d70-4ed7.gradio.live :method: POST :path: /sdapi/v1/txt2img :scheme: https accept: */* accept-encoding: gzip, deflate, br accept-language: en-US,en;q=0.9 content-length: 47 content-type: text/plain;charset=UTF-8 origin: https://9v4gvp.csb.app referer: https://9v4gvp.csb.app/ sec-ch-ua: "Not_A Brand";v="99", "Microsoft Edge";v="109", "Chromium";v="109" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" sec-fetch-dest: empty sec-fetch-mode: no-cors sec-fetch-site: cross-site user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.70
and
`Button.svelte? [sm]:11
POST https://207a93c8-8d70-4ed7.gradio.live/sdapi/v1/txt2img net::ERR_ABORTED 422
onSubmit @ Button.svelte? [sm]:11
index.js:27
i am using this svelte component
https://gist.github.com/gschian0/a2eb615018f5acd4e5545e5df7aeadfd
I am able to call it with this equivalent python code ...
payload = { "prompt": "zen boyz", "steps": 15 }
import io import base64 import requests from PIL import Image response = requests.post(url=f'https://207a93c8-8d70-4ed7.gradio.live/sdapi/v1/txt2img/', json=payload) r = response.json() for i in r['images']: image = Image.open(io.BytesIO(base64.b64decode(i.split(",",1)[0])))
here is a copy of the cli args being entered with [auto] profile
auto: &automatic <<: *base_service profiles: ["auto"] build: ./services/AUTOMATIC1111 image: sd-auto:42 environment: - CLI_ARGS=--cors-allow-origins all --cors-allow-origins-regex '*' --share --no-half --allow-code --medvram --xformers --enable-insecure-extension-access --api
Beta Was this translation helpful? Give feedback.
All reactions