fix login
Browse files
app.py
CHANGED
@@ -93,7 +93,8 @@ with gr.Blocks(css=css) as demo:
|
|
93 |
gr.Markdown(
|
94 |
"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."
|
95 |
)
|
96 |
-
|
|
|
97 |
demo.load(login, inputs=None, outputs=None)
|
98 |
with gr.Column(elem_id="col-container"):
|
99 |
gr.Markdown(
|
|
|
93 |
gr.Markdown(
|
94 |
"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."
|
95 |
)
|
96 |
+
button = gr.LoginButton("Sign in")
|
97 |
+
button.click(fn=login, inputs=[], outputs=[])
|
98 |
demo.load(login, inputs=None, outputs=None)
|
99 |
with gr.Column(elem_id="col-container"):
|
100 |
gr.Markdown(
|