Spaces:
Running
Running
Update ui_components.py
Browse files- ui_components.py +3 -2
ui_components.py
CHANGED
|
@@ -107,11 +107,12 @@ class UIComponents:
|
|
| 107 |
"""Create HuggingFace OAuth login section"""
|
| 108 |
with gr.Group(elem_classes="login-section"):
|
| 109 |
gr.Markdown("## π Authentication", container=True)
|
|
|
|
| 110 |
self.login_button = gr.LoginButton(
|
| 111 |
value="Sign in with Hugging Face",
|
| 112 |
-
size="sm"
|
|
|
|
| 113 |
)
|
| 114 |
-
self.login_status = gr.Markdown("βͺ Please sign in to access Inference Providers", container=True)
|
| 115 |
|
| 116 |
def _create_provider_model_selection(self):
|
| 117 |
"""Create provider and model selection dropdowns with defaults"""
|
|
|
|
| 107 |
"""Create HuggingFace OAuth login section"""
|
| 108 |
with gr.Group(elem_classes="login-section"):
|
| 109 |
gr.Markdown("## π Authentication", container=True)
|
| 110 |
+
self.login_status = gr.Markdown("βͺ Please sign in to access Inference Providers", container=True)
|
| 111 |
self.login_button = gr.LoginButton(
|
| 112 |
value="Sign in with Hugging Face",
|
| 113 |
+
size="sm",
|
| 114 |
+
redirect_url="https://gradio-chat-gradio-app-hfips.hf.space/"
|
| 115 |
)
|
|
|
|
| 116 |
|
| 117 |
def _create_provider_model_selection(self):
|
| 118 |
"""Create provider and model selection dropdowns with defaults"""
|