Seetha commited on
Commit
6c48db2
·
1 Parent(s): 8d47aee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -2,6 +2,7 @@ from datasets import load_dataset
2
  import streamlit as st
3
  import pandas as pd
4
  from huggingface_hub import HfApi, list_models
 
5
 
6
  # from datasets import Dataset
7
  # Dataset.cleanup_cache_files
@@ -13,5 +14,7 @@ df = pd.DataFrame.from_dict(dataset["train"])
13
  st.write('dataset-retrieved')
14
  st.write(df)
15
 
16
- HfApi().delete_file('https://huggingface.co/datasets/Seetha/visual_cs/raw/main/final_data.csv','Seetha/visual_cs')
 
 
17
  st.write('file-deleted')
 
2
  import streamlit as st
3
  import pandas as pd
4
  from huggingface_hub import HfApi, list_models
5
+ import od
6
 
7
  # from datasets import Dataset
8
  # Dataset.cleanup_cache_files
 
14
  st.write('dataset-retrieved')
15
  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('https://huggingface.co/datasets/Seetha/visual_cs/raw/main/final_data.csv','Seetha/visual_cs',HF_TOKEN)
20
  st.write('file-deleted')