Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ from huggingface_hub import login
|
|
18 |
# import os
|
19 |
# Define the function to process the input file and model selection
|
20 |
|
21 |
-
api = HfApi()
|
22 |
DATASET_REPO = "suryadev1/generated-csvs"
|
23 |
def delete_files():
|
24 |
repo_files = api.list_repo_files(repo_id=DATASET_REPO, repo_type="dataset")
|
|
|
18 |
# import os
|
19 |
# Define the function to process the input file and model selection
|
20 |
|
21 |
+
api = HfApi(token=os.getenv("HF_TOKEN"))
|
22 |
DATASET_REPO = "suryadev1/generated-csvs"
|
23 |
def delete_files():
|
24 |
repo_files = api.list_repo_files(repo_id=DATASET_REPO, repo_type="dataset")
|