Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
9 |
from datasets import load_dataset, DatasetDict, Dataset
|
10 |
import numpy as np
|
11 |
|
12 |
HF_TOKEN = os.environ['HF_TOKEN']
|
13 |
-
|
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 |
|