Seetha commited on
Commit
76820e8
1 Parent(s): 24cec01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -485,7 +485,7 @@ def main():
485
  })
486
 
487
  HfApi().delete_file(path_in_repo = DATA_FILENAME1 ,repo_id = 'Seetha/visual_files',token= HF_TOKEN,repo_type='dataset')
488
- st.write('file-deleted')
489
  fs = HfFileSystem(token=HF_TOKEN)
490
  with fs.open('datasets/Seetha/visual_files/level2.json', 'w') as f:
491
  json.dump(json_data, f)
@@ -507,7 +507,7 @@ def main():
507
  json_data = json.dumps(data_list)
508
 
509
  HfApi().delete_file(path_in_repo = DATA_FILENAME ,repo_id = 'Seetha/visual_files',token= HF_TOKEN,repo_type='dataset')
510
- st.write('file2-deleted')
511
  with fs.open('datasets/Seetha/visual_files/detailedResults.json','w') as fi:
512
  #data = json.load(fi)
513
  fi.write(json_data)
 
485
  })
486
 
487
  HfApi().delete_file(path_in_repo = DATA_FILENAME1 ,repo_id = 'Seetha/visual_files',token= HF_TOKEN,repo_type='dataset')
488
+ #st.write('file-deleted')
489
  fs = HfFileSystem(token=HF_TOKEN)
490
  with fs.open('datasets/Seetha/visual_files/level2.json', 'w') as f:
491
  json.dump(json_data, f)
 
507
  json_data = json.dumps(data_list)
508
 
509
  HfApi().delete_file(path_in_repo = DATA_FILENAME ,repo_id = 'Seetha/visual_files',token= HF_TOKEN,repo_type='dataset')
510
+ #st.write('file2-deleted')
511
  with fs.open('datasets/Seetha/visual_files/detailedResults.json','w') as fi:
512
  #data = json.load(fi)
513
  fi.write(json_data)