Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
| 3 |
with gr.Blocks(fill_height=True) as demo:
|
| 4 |
with gr.Sidebar():
|
| 5 |
gr.Markdown("# Inference Provider")
|
| 6 |
gr.Markdown("This Space showcases the black-forest-labs/FLUX.1-dev model, served by the nebius API. Sign in with your Hugging Face account to use this API.")
|
| 7 |
button = gr.LoginButton("Sign in")
|
| 8 |
-
gr.load("
|
| 9 |
|
| 10 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
with gr.Blocks(fill_height=True) as demo:
|
| 3 |
with gr.Sidebar():
|
| 4 |
gr.Markdown("# Inference Provider")
|
| 5 |
gr.Markdown("This Space showcases the black-forest-labs/FLUX.1-dev model, served by the nebius API. Sign in with your Hugging Face account to use this API.")
|
| 6 |
button = gr.LoginButton("Sign in")
|
| 7 |
+
gr.load("models/black-forest-labs/FLUX.1-dev", accept_token=button, provider="nebius")
|
| 8 |
|
| 9 |
demo.launch()
|