awacke1 commited on
Commit
3b9d74f
1 Parent(s): bf9eaa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,8 +11,8 @@ import requests
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("/")
 
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("/")