jbilcke-hf / ai-comic-factory

Generate comic panels using a LLM + SDXL. Powered by Hugging Face 🤗
https://aicomicfactory.app
Apache License 2.0
973 stars 204 forks source link

Returns incorrect content type for Inference Endpoints #11

Closed skorth closed 9 months ago

skorth commented 9 months ago

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.

jbilcke commented 9 months ago

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!

jbilcke-hf commented 9 months ago

Merged (see here https://github.com/jbilcke-hf/ai-comic-factory/blob/main/.env#L57 )