File size: 489 Bytes
4d272f1
 
 
 
c18c8d2
 
3171a74
2426260
 
1
2
3
4
5
6
7
8
9
import gradio as gr
with gr.Blocks(fill_height=True) as demo:
    with gr.Sidebar():
        gr.Markdown("# Inference Provider")
        gr.Markdown("This Space demonstrates the black-forest-labs/FLUX.1-dev model, served by the nebius API. Sign in with your own Hugging Face account to use this API, because I don't have enough tokens.")
        button = gr.LoginButton("Log in")
    gr.load("models/black-forest-labs/FLUX.1-dev", accept_token=button, provider="nebius")
    
demo.launch()