Spaces:
Runtime error
Runtime error
File size: 323 Bytes
16b6c6e 2324c3f 87cb219 2324c3f 87cb219 16b6c6e 06cfaa3 16b6c6e 87cb219 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import gradio as gr
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="fal-ai",
api_key=os.environ["HF_TOKEN"]
)
image = client.text_to_image(
"Astronaut riding a horse",
model="black-forest-labs/FLUX.1-dev"
)
with gr.Blocks() as demo:
gr.Image(image)
demo.launch() |