abidlabs HF Staff commited on
Commit
37842a5
Β·
verified Β·
1 Parent(s): bf6c006

Update ui_components.py

Browse files
Files changed (1) hide show
  1. 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 "βšͺ Please sign in to access Inference Providers"
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"βœ… Signed in as: **{profile.name}**"
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):