Update build_logic.py
Browse files- 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
|
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
|