Downloads · 30 days
0
AverageAImannthatlikesanime6/Paddos
Paddos is a machine learning model from AverageAImannthatlikesanime6. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Dec 8, 2023
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 75%
From the Hugging Face model README
import requests
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0" headers = {"Authorization": f"Bearer {API_TOKEN}"}
def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.content image_bytes = query({ "inputs": "Astronaut riding a horse", })
import io from PIL import Image image = Image.open(io.BytesIO(image_bytes))