lemms commited on
Commit
f740153
Β·
verified Β·
1 Parent(s): 857ee2c

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -114,6 +114,7 @@ def create_space_interface():
114
  # Test Space's built-in authentication
115
  try:
116
  from huggingface_hub import whoami
 
117
  user_info = whoami()
118
  result += f"βœ… Space built-in authentication working\n"
119
  result += f" - User: {user_info['name']}\n"
@@ -121,7 +122,7 @@ def create_space_interface():
121
  result += f" - Authentication: Space built-in token\n"
122
  except Exception as auth_error:
123
  result += f"❌ Space built-in authentication failed: {str(auth_error)[:50]}...\n"
124
-
125
  if hf_token:
126
  result += f"βœ… HF access token found: {hf_token[:8]}...{hf_token[-4:]}\n"
127
  result += " - Source: HF access token in Space settings\n"
 
114
  # Test Space's built-in authentication
115
  try:
116
  from huggingface_hub import whoami
117
+
118
  user_info = whoami()
119
  result += f"βœ… Space built-in authentication working\n"
120
  result += f" - User: {user_info['name']}\n"
 
122
  result += f" - Authentication: Space built-in token\n"
123
  except Exception as auth_error:
124
  result += f"❌ Space built-in authentication failed: {str(auth_error)[:50]}...\n"
125
+
126
  if hf_token:
127
  result += f"βœ… HF access token found: {hf_token[:8]}...{hf_token[-4:]}\n"
128
  result += " - Source: HF access token in Space settings\n"