Spaces:
Running
Running
Update ui_components.py
Browse files- ui_components.py +2 -2
ui_components.py
CHANGED
@@ -239,7 +239,7 @@ class UIComponents:
|
|
239 |
# OAuth profile handler
|
240 |
def handle_oauth_profile(profile: gr.OAuthProfile | None, token: gr.OAuthToken | None):
|
241 |
if profile is None:
|
242 |
-
return "
|
243 |
|
244 |
logger.info(f"π€ OAuth profile received for user: {profile.name}")
|
245 |
|
@@ -255,7 +255,7 @@ class UIComponents:
|
|
255 |
except Exception as e:
|
256 |
logger.error(f"β Failed to update HF client: {e}")
|
257 |
|
258 |
-
return f"
|
259 |
|
260 |
# Provider selection with auto-model loading
|
261 |
def handle_provider_change(provider_id):
|
|
|
239 |
# OAuth profile handler
|
240 |
def handle_oauth_profile(profile: gr.OAuthProfile | None, token: gr.OAuthToken | None):
|
241 |
if profile is None:
|
242 |
+
return "<small>Please sign in to access Inference Providers</small>"
|
243 |
|
244 |
logger.info(f"π€ OAuth profile received for user: {profile.name}")
|
245 |
|
|
|
255 |
except Exception as e:
|
256 |
logger.error(f"β Failed to update HF client: {e}")
|
257 |
|
258 |
+
return f"<small>β
Signed in as: <strong>{profile.name}</strong></small>"
|
259 |
|
260 |
# Provider selection with auto-model loading
|
261 |
def handle_provider_change(provider_id):
|