I created a basic Stable Diffusion image generator mini web app that runs in a web page and uses the Hugging Face Stability ai model. So that’s good. I’ve been meaning to do that for a while.
Just plug in a Hugging Face api key token and your prompt.
It generates images on the fly, and uses your hf compute credits.
I consider it a code sketch - which I think of as a bit less polished than a prototype.
The first model works in the list so far, but it’s an interesting exploration. And, it works to generate images if you enter your hf api token, set to “read” which is enough for inference.
I put the code here if you want to try it in your own HTML page.
https://codepen.io/sjagiello/pen/yyLqjNm.