File size: 387 Bytes
16b6c6e
09bb96a
16b6c6e
 
7aaf933
16b6c6e
81b8695
16b6c6e
7aaf933
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr
import os

with gr.Blocks() as demo:
    button = gr.LoginButton("Sign in to use your Hugging Face Token")
    with gr.Column(variant="panel"):
        gr.load("black-forest-labs/FLUX.1-dev", src="models", provider="fal-ai", accept_token=button)
    
demo.launch()

# gr.load("distilbert/distilbert-base-uncased", src="models", accept_token=gr.LoginButton()).launch()