Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
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')
|