vancauwe commited on
Commit
4158a85
·
1 Parent(s): 5608539

feat: push to HF enabled

Browse files
app/validation_submission/submission.py CHANGED
@@ -23,10 +23,9 @@ def push_to_dataset_hf(individual):
23
  f.flush()
24
  f.close()
25
  path_in_repo = f"data/{individual['image_md5']}.json"
26
- # print(path_in_repo)
27
- # api.upload_file(
28
- # path_or_fileobj=f.name,
29
- # path_in_repo=path_in_repo,
30
- # repo_id="SDSC/digiwild-dataset",
31
- # repo_type="dataset",
32
- # )
 
23
  f.flush()
24
  f.close()
25
  path_in_repo = f"data/{individual['image_md5']}.json"
26
+ api.upload_file(
27
+ path_or_fileobj=f.name,
28
+ path_in_repo=path_in_repo,
29
+ repo_id="SDSC/digiwild-dataset",
30
+ repo_type="dataset",
31
+ )