Seetha commited on
Commit
bb0b163
·
1 Parent(s): 58f8cdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -7,6 +7,11 @@ import os
7
  # from datasets import Dataset
8
  # Dataset.cleanup_cache_files
9
 
 
 
 
 
 
10
  st.write('dataset')
11
  dataset = load_dataset("Seetha/visual_cs")
12
  df = pd.DataFrame.from_dict(dataset["train"])
@@ -16,5 +21,5 @@ st.write(df)
16
 
17
  HF_TOKEN = os.environ.get("HF_TOKEN")
18
  st.write("is none?", HF_TOKEN is None)
19
- HfApi().delete_file(path_in_repo = 'raw/main/final_data.csv',repo_id = 'Seetha/visual_cs',token= HF_TOKEN)
20
  st.write('file-deleted')
 
7
  # from datasets import Dataset
8
  # Dataset.cleanup_cache_files
9
 
10
+ DATASET_REPO_URL = "https://huggingface.co/datasets/Seetha/visual_cs"
11
+ DATA_FILENAME = "final_data.csv"
12
+ DATA_FILE = os.path.join("data", DATA_FILENAME)
13
+
14
+
15
  st.write('dataset')
16
  dataset = load_dataset("Seetha/visual_cs")
17
  df = pd.DataFrame.from_dict(dataset["train"])
 
21
 
22
  HF_TOKEN = os.environ.get("HF_TOKEN")
23
  st.write("is none?", HF_TOKEN is None)
24
+ HfApi().delete_file(path_in_repo = DATA_FILE ,repo_id = 'Seetha/visual_cs',token= HF_TOKEN)
25
  st.write('file-deleted')