Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,13 +43,14 @@ def grant_access_multiple_repos(token, repo_list, username):
|
|
| 43 |
"""
|
| 44 |
Grant access to multiple repositories at once
|
| 45 |
"""
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
| 53 |
|
| 54 |
with gr.Blocks(title="HF Repo Access Manager") as demo:
|
| 55 |
gr.Markdown("# 🔐 Hugging Face Repo Access Manager")
|
|
|
|
| 43 |
"""
|
| 44 |
Grant access to multiple repositories at once
|
| 45 |
"""
|
| 46 |
+
try:
|
| 47 |
+
results = []
|
| 48 |
+
for repo_id in repo_list:
|
| 49 |
+
result.append(grant_access_to_repo(token, repo_id, username))
|
| 50 |
+
|
| 51 |
+
return "\n".join(results)
|
| 52 |
+
except Exception as e:
|
| 53 |
+
gr.Info("SBM FAIL" + str(e))
|
| 54 |
|
| 55 |
with gr.Blocks(title="HF Repo Access Manager") as demo:
|
| 56 |
gr.Markdown("# 🔐 Hugging Face Repo Access Manager")
|