Spaces:
Runtime error
Runtime error
Commit
·
6a77481
1
Parent(s):
ce03486
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ import huggingface_hub
|
|
8 |
print("hfh", huggingface_hub.__version__)
|
9 |
from huggingface_hub import hf_hub_download, upload_file
|
10 |
from datetime import datetime
|
|
|
11 |
|
12 |
DATASET_REPO_ID = "datasets/CognitiveScience/csdhdata"
|
13 |
DATASET_REPO_URL = f"https://huggingface.co/{DATASET_REPO_ID}"
|
@@ -16,8 +17,7 @@ DATA_FILENAME = "data.csv"
|
|
16 |
DATA_FILE = os.path.join(DATA_DIRNAME, DATA_FILENAME)
|
17 |
|
18 |
HF_TOKEN = os.environ.get("HF_KEY")
|
19 |
-
|
20 |
-
|
21 |
print("hfh", huggingface_hub.__version__)
|
22 |
|
23 |
# overriding/appending to the gradio template
|
|
|
8 |
print("hfh", huggingface_hub.__version__)
|
9 |
from huggingface_hub import hf_hub_download, upload_file
|
10 |
from datetime import datetime
|
11 |
+
from huggingface_hub import login
|
12 |
|
13 |
DATASET_REPO_ID = "datasets/CognitiveScience/csdhdata"
|
14 |
DATASET_REPO_URL = f"https://huggingface.co/{DATASET_REPO_ID}"
|
|
|
17 |
DATA_FILE = os.path.join(DATA_DIRNAME, DATA_FILENAME)
|
18 |
|
19 |
HF_TOKEN = os.environ.get("HF_KEY")
|
20 |
+
login(token=HF_TOKEN) #"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")
|
|
|
21 |
print("hfh", huggingface_hub.__version__)
|
22 |
|
23 |
# overriding/appending to the gradio template
|