Spaces:
Build error
Build error
Commit
·
a0c78b9
1
Parent(s):
10716ba
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,11 +17,12 @@ def make_clickable_space(name, repo_type):
|
|
| 17 |
def get_repo_ids(repo_type):
|
| 18 |
api = HfApi()
|
| 19 |
if repo_type == "spaces":
|
| 20 |
-
repos = api.list_spaces(
|
|
|
|
| 21 |
elif repo_type == "models":
|
| 22 |
-
repos = api.list_models(
|
| 23 |
else:
|
| 24 |
-
repos = api.list_datasets(
|
| 25 |
return repos
|
| 26 |
|
| 27 |
def get_submissions(repo_type):
|
|
|
|
| 17 |
def get_repo_ids(repo_type):
|
| 18 |
api = HfApi()
|
| 19 |
if repo_type == "spaces":
|
| 20 |
+
repos = api.list_spaces(author="hackathon-somos-nlp-2023")
|
| 21 |
+
repos = [s for s in repos if s.id not in ["hackathon-somos-nlp-2023/README", "hackathon-somos-nlp-2023/leaderboard"]]
|
| 22 |
elif repo_type == "models":
|
| 23 |
+
repos = api.list_models(author="hackathon-somos-nlp-2023")
|
| 24 |
else:
|
| 25 |
+
repos = api.list_datasets(author="hackathon-somos-nlp-2023")
|
| 26 |
return repos
|
| 27 |
|
| 28 |
def get_submissions(repo_type):
|