Spaces:
Sleeping
Sleeping
File size: 488 Bytes
d076f2a 0ca1004 3f52c30 33eb028 404c329 26494b4 5187d7c a791e2d 5187d7c 404c329 a791e2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from huggingface_hub import HfApi
token = ""
name = "Omnibus"
api = HfApi(token=token)
author=name
s_ist = (api.list_datasets(author=author))
#print(api.whoami())
spaces=[]
for space in s_ist:
#for i,space in enumerate(s_ist):
try:
space_ea = space.id.split("/",1)[1]
spaces.append(space_ea)
print(space.id)
except Exception as e:
print(e)
#s_info=api.space_info(f'{name}/{space}',files_metadata=True)
#print(s_info)
print(spaces) |