osanseviero
commited on
Commit
•
43d40a3
1
Parent(s):
fc6513b
Update src/distilabel_dataset_generator/utils.py
Browse files
src/distilabel_dataset_generator/utils.py
CHANGED
@@ -47,10 +47,10 @@ def get_duplicate_button():
|
|
47 |
return gr.DuplicateButton(size="lg")
|
48 |
|
49 |
|
50 |
-
def list_orgs(
|
51 |
if oauth_token is None:
|
52 |
return []
|
53 |
-
data = whoami(
|
54 |
organisations = [
|
55 |
entry["entity"]["name"]
|
56 |
for entry in data["auth"]["accessToken"]["fineGrained"]["scoped"]
|
|
|
47 |
return gr.DuplicateButton(size="lg")
|
48 |
|
49 |
|
50 |
+
def list_orgs(oauth_token: OAuthToken = None):
|
51 |
if oauth_token is None:
|
52 |
return []
|
53 |
+
data = whoami(oauth_token.token)
|
54 |
organisations = [
|
55 |
entry["entity"]["name"]
|
56 |
for entry in data["auth"]["accessToken"]["fineGrained"]["scoped"]
|