lysandre HF staff commited on
Commit
e21b55c
1 Parent(s): d947152

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,12 +5,12 @@ import json
5
  from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
6
  from urllib.parse import parse_qs, urlparse
7
 
8
- from huggingface_hub import list_datasets, set_access_token, HfFolder
9
  from datasets import load_dataset, DatasetDict, Dataset
10
  import numpy as np
11
 
12
  HF_TOKEN = os.environ['HF_TOKEN']
13
- set_access_token(HF_TOKEN)
14
  HfFolder.save_token(HF_TOKEN)
15
 
16
 
 
5
  from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
6
  from urllib.parse import parse_qs, urlparse
7
 
8
+ from huggingface_hub import list_datasets, login, HfFolder
9
  from datasets import load_dataset, DatasetDict, Dataset
10
  import numpy as np
11
 
12
  HF_TOKEN = os.environ['HF_TOKEN']
13
+ login(HF_TOKEN)
14
  HfFolder.save_token(HF_TOKEN)
15
 
16