I’m using https://huggingface.co/stabilityai/stable-diffusion-2-1 in my space and I’d like to use the Inference Endpoints API to obtain images based on prompts.
My code is the one generated:
import gradio as gr
gr.Interface.load("models/stabilityai/stable-diffusion-2-1")
So far so good, but I want to obtain 4 items when I call the API.
How can I do that?
PS: A second question: is it possible to add parameters to the API request?
Thanks