Spaces:
Runtime error
Runtime error
File size: 260 Bytes
26eac78 23f5b9b 26eac78 ea3c033 26eac78 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from huggingface_hub import InferenceClient
import os
client = InferenceClient(
provider="hf-inference",
api_key=os.getenv("KEY")
)
# output is a PIL.Image object
image = client.text_to_image(
"Astronaut riding a horse emoji",
model="retronic/platmoji"
) |