Downloads · 30 days
0
Lilpopit/privet
privet is a machine learning model from Lilpopit. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Jun 22, 2023
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 77%
From the Hugging Face model README
import requests
API_URL = "https://api-inference.huggingface.co/models/Falon/ayaka-db" 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))