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 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
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 |
+
)
|
|