Spaces:
Sleeping
Sleeping
Fix: Re-add login button to Gradio app
Browse filesThe login button was inadvertently removed during previous linting fixes,
leading to authentication issues. This commit re-adds the `gr.LoginButton`
component to the Gradio interface and suppresses the F841 linting warning
as the variable is used for UI rendering.
app.py
CHANGED
|
@@ -185,6 +185,9 @@ def build_gradio_app():
|
|
| 185 |
|
| 186 |
|
| 187 |
|
|
|
|
|
|
|
|
|
|
| 188 |
gr.Markdown("### 1. Select a Model from the Hugging Face Hub")
|
| 189 |
model_input = HuggingfaceHubSearch(
|
| 190 |
label="Search for a Model",
|
|
|
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
+
with gr.Row():
|
| 189 |
+
login_button = gr.LoginButton(min_width=250) # noqa: F841
|
| 190 |
+
|
| 191 |
gr.Markdown("### 1. Select a Model from the Hugging Face Hub")
|
| 192 |
model_input = HuggingfaceHubSearch(
|
| 193 |
label="Search for a Model",
|