broadfield-dev commited on
Commit
5844405
·
verified ·
1 Parent(s): e83eb22

Update build_logic.py

Browse files
Files changed (1) hide show
  1. build_logic.py +1 -1
build_logic.py CHANGED
@@ -26,7 +26,7 @@ logger = logging.getLogger(__name__)
26
  def hf_list_repos(user_name,token):
27
  api=HfApi()
28
  user_repos=[]
29
- for space in api.list_spaces(user_name,token=token):
30
  if space.id.startswith(user_name): # Check if modelId starts with the username
31
  user_repos.append(space.id)
32
  return user_repos
 
26
  def hf_list_repos(user_name,token):
27
  api=HfApi()
28
  user_repos=[]
29
+ for space in api.list_spaces(user_name):
30
  if space.id.startswith(user_name): # Check if modelId starts with the username
31
  user_repos.append(space.id)
32
  return user_repos