Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import os
|
|
6 |
import datasets
|
7 |
from datasets import Dataset, DatasetDict
|
8 |
from huggingface_hub import HfFileSystem
|
9 |
-
|
10 |
|
11 |
# from datasets import Dataset
|
12 |
# Dataset.cleanup_cache_files
|
@@ -25,6 +25,8 @@ st.write('dataset')
|
|
25 |
|
26 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
27 |
st.write("is none?", HF_TOKEN is None)
|
|
|
|
|
28 |
# HfApi().delete_file(path_in_repo = DATA_FILENAME ,repo_id = 'Seetha/visual_cs',token= HF_TOKEN,repo_type='dataset')
|
29 |
# st.write('file-deleted')
|
30 |
|
@@ -40,4 +42,4 @@ st.write(data_stakeholdercount)
|
|
40 |
# st.write(ds)
|
41 |
# ds.push_to_hub('Seetha/visual_cs',token= HF_TOKEN)
|
42 |
fs.ls("datasets/Seetha/visual_cs",detail=False)
|
43 |
-
data_stakeholdercount.to_csv("https://huggingface.co/datasets/Seetha/visual_cs/test.csv"
|
|
|
6 |
import datasets
|
7 |
from datasets import Dataset, DatasetDict
|
8 |
from huggingface_hub import HfFileSystem
|
9 |
+
|
10 |
|
11 |
# from datasets import Dataset
|
12 |
# Dataset.cleanup_cache_files
|
|
|
25 |
|
26 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
27 |
st.write("is none?", HF_TOKEN is None)
|
28 |
+
|
29 |
+
fs = HfFileSystem(token=HF_TOKEN)
|
30 |
# HfApi().delete_file(path_in_repo = DATA_FILENAME ,repo_id = 'Seetha/visual_cs',token= HF_TOKEN,repo_type='dataset')
|
31 |
# st.write('file-deleted')
|
32 |
|
|
|
42 |
# st.write(ds)
|
43 |
# ds.push_to_hub('Seetha/visual_cs',token= HF_TOKEN)
|
44 |
fs.ls("datasets/Seetha/visual_cs",detail=False)
|
45 |
+
data_stakeholdercount.to_csv("https://huggingface.co/datasets/Seetha/visual_cs/test.csv")
|