Seetha commited on
Commit
7552638
·
1 Parent(s): 31541f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -85,6 +85,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN")
85
  repo = Repository(
86
  local_dir="level2", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
87
  )
 
88
 
89
  # print("is none?", HF_TOKEN is None)
90
 
@@ -528,7 +529,7 @@ def main():
528
  # Write JSON to file
529
  with open('level2.json', 'a') as f: #w+
530
  json.dump(json_data, f)
531
- repo.push_to_hub()
532
 
533
  #dataset = load_dataset("seetha/visual_files")
534
  #repo.push_to_hub("level2.json")
 
85
  repo = Repository(
86
  local_dir="level2", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
87
  )
88
+ dataset = load_dataset(DATASET_REPO_URL)
89
 
90
  # print("is none?", HF_TOKEN is None)
91
 
 
529
  # Write JSON to file
530
  with open('level2.json', 'a') as f: #w+
531
  json.dump(json_data, f)
532
+ repo.push_to_hub('seetha/level2.json')
533
 
534
  #dataset = load_dataset("seetha/visual_files")
535
  #repo.push_to_hub("level2.json")