stable-diffusion-api-server icon indicating copy to clipboard operation
stable-diffusion-api-server copied to clipboard

"Unexpected Token < in JSON at position 0" using local inference on a layer

Open jlolsen opened this issue 2 years ago • 0 comments

I installed Stability AI locally on a Windows 11 machine. Text prompting works great. When I check the box to 'Include Image' and use "Selected Layer (Image-to-Image) I get an error: "Unexpected Token < in JSON at position 0"

I did get a Hugging Face acccount and created an Access Token. I put that token into the file named 'config.json' located in the root of the 'stable-diffusion-api-server-main' folder. I used the syntax of: "hf_token": "my-token-string"

I tried refreshing the token, but get the same result. Any idea why?

jlolsen avatar May 01 '23 22:05 jlolsen