Spaces:
Runtime error
Runtime error
Commit
·
a05d9d4
1
Parent(s):
eed3f7b
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,16 +8,17 @@ 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 |
-
from huggingface_hub import login
|
| 12 |
|
| 13 |
-
DATASET_REPO_ID = "datasets/
|
| 14 |
DATASET_REPO_URL = f"https://huggingface.co/{DATASET_REPO_ID}"
|
| 15 |
DATA_DIRNAME = "data"
|
| 16 |
DATA_FILENAME = "data.csv"
|
| 17 |
DATA_FILE = os.path.join(DATA_DIRNAME, DATA_FILENAME)
|
| 18 |
|
| 19 |
-
HF_TOKEN = os.environ.get("
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# overriding/appending to the gradio template
|
| 23 |
SCRIPT = """
|
|
|
|
| 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/ccml/dataset1"
|
| 13 |
DATASET_REPO_URL = f"https://huggingface.co/{DATASET_REPO_ID}"
|
| 14 |
DATA_DIRNAME = "data"
|
| 15 |
DATA_FILENAME = "data.csv"
|
| 16 |
DATA_FILE = os.path.join(DATA_DIRNAME, DATA_FILENAME)
|
| 17 |
|
| 18 |
+
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
print("hfh", huggingface_hub.__version__)
|
| 22 |
|
| 23 |
# overriding/appending to the gradio template
|
| 24 |
SCRIPT = """
|