suryadev1 commited on
Commit
473212a
·
verified ·
1 Parent(s): fc81369

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")