TheXeos commited on
Commit
279d9a3
1 Parent(s): cddb1c1

Remove .git folder before call Repository

Browse files
Files changed (1) hide show
  1. background_task.py +2 -0
background_task.py CHANGED
@@ -13,6 +13,8 @@ ELO_FILENAME = "soccer_elo.csv"
13
  ELO_DIR = "soccer_elo"
14
  HF_TOKEN = os.environ.get("HF_TOKEN")
15
 
 
 
16
  repo = Repository(
17
  local_dir=ELO_DIR, clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
18
  )
 
13
  ELO_DIR = "soccer_elo"
14
  HF_TOKEN = os.environ.get("HF_TOKEN")
15
 
16
+
17
+ os.remove(".git")
18
  repo = Repository(
19
  local_dir=ELO_DIR, clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
20
  )