jbilcke-hf / ai-comic-factory

Generate comic panels using a LLM + SDXL. Powered by Hugging Face 🤗

Home Page:https://aicomicfactory.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returns incorrect content type for Inference Endpoints

skorth opened this issue · comments

I played around with my own Inference Endpoint using stabilityai/stable-diffusion-xl-base-1.0 and the Inference API. The second one worked, my own Endpoint did not. In fact, the wrong content type (test/plain) seems to be delivered at the Inference Endpoints if it is not requested in the header. Just add a "Accept": "image/png" to the request header here, rebuild and everything works fine again.

Thanks for your suggestion, I am adding it as an environment variable + a config option

I have integrated it as part of my current WIP code (which will split the requests made to the LLM for a more progressive/smooth update - panels will be generated before the whole story is finished)

this new version should be deployed either today or tomorrow!