Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ import requests
|
|
11 |
from huggingface_hub import HfApi
|
12 |
|
13 |
hf_api = HfApi()
|
14 |
-
|
15 |
-
roots_datasets = {dset.id.split("/")[-1]:dset for dset in hf_api.list_datasets(author="bigscience-data", use_auth_token=os.environ.get("HF_TOKEN"))}
|
16 |
|
17 |
def get_docid_html(docid):
|
18 |
data_org, dataset, docid = docid.split("/")
|
|
|
11 |
from huggingface_hub import HfApi
|
12 |
|
13 |
hf_api = HfApi()
|
14 |
+
roots_datasets = {dset.id.split("/")[-1]:dset for dset in hf_api.list_datasets(author="bigscience-data", use_auth_token=os.environ.get("bigscience_data_token"))}
|
15 |
+
#roots_datasets = {dset.id.split("/")[-1]:dset for dset in hf_api.list_datasets(author="bigscience-data", use_auth_token=os.environ.get("HF_TOKEN"))}
|
16 |
|
17 |
def get_docid_html(docid):
|
18 |
data_org, dataset, docid = docid.split("/")
|