How can i add "scheduler" in diffuser (inference api)?
how can i add “scheduler” in diffuser??EulerAncestralDiscreteSchedulerimport requests
from PIL import Image
import io

API_URL = "https://api-inference.huggingface.co/models/DamarJati/melaura-v1.2"
headers = {"Authorization": "Bearer REDACTED_TOKEN"}

def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    if response.status_code == 200:
        return response.content
    else:
        print("API request failed with status code:", response.status_code)
        return None

image_bytes = query({
    "inputs": "melaura, girl, hd, pink lips, detailed, age 16, Off-shoulder top, shiny cheeks, ",
    "negative_prompt": "earrings, deformed, blurry, badanatomy, bad proportions, "
})

if image_bytes is not None:
    try:
        image = Image.open(io.BytesIO(image_bytes))
        # Save the image to a file
        image.save("output_image.png")
        image.show()  # Displays images
    except Exception as e:
        print("Error while opening or displaying the image:", str(e))
else:
    print("Failed to get image from the API.")