File size: 1,214 Bytes
151ce1c d83b45c 9becabf d83b45c 9becabf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
---
widget:
- text: ksrksr a man is standing facing forward
output:
url: images/ksrksr_e000033_00_20241012044531.png
base_model: enhanceaiteam/FLUX.1-Pro
instance_prompt: ksrksr
license: mit
pipeline_tag: text-to-image
---
import requests
API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
headers = {"Authorization": "Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.content
image_bytes = query({
"inputs": "Astronaut riding a horse",
})
# You can access the image with PIL.Image for example
import io
from PIL import Image
image = Image.open(io.BytesIO(image_bytes))
---
tags:
- text-to-image
- FLUX.1-PRO
- generation
widget:
- text: ksrksr a man is standing facing forward
output:
url: images/ksrksr_e000033_00_20241012044531.png
base_model: enhanceaiteam/FLUX.1-Pro
instance_prompt: ksrksr
license: mit
---
# ksr
<Gallery />
## Trigger words
You should use `ksrksr` to trigger the image generation.
## Download model
Weights for this model are available in Safetensors format.
[Download](/defhouse/ksrksr/tree/main) them in the Files & versions tab. |