patrickvonplaten
commited on
Commit
•
a9639c8
1
Parent(s):
c8b957a
add
Browse files- update_almost_agi.py +6 -4
update_almost_agi.py
CHANGED
@@ -41,7 +41,7 @@ ds = load_dataset("nateraw/parti-prompts")["train"]
|
|
41 |
parti_prompt_categories = ds["Category"]
|
42 |
parti_prompt_challenge = ds["Challenge"]
|
43 |
|
44 |
-
UPLOAD_ORG = "
|
45 |
|
46 |
def load_non_solved():
|
47 |
all_datasets = list_datasets(author=SUBMISSION_ORG)
|
@@ -49,7 +49,7 @@ def load_non_solved():
|
|
49 |
|
50 |
all_non_solved_image_ids = []
|
51 |
|
52 |
-
for _id in relevant_ids
|
53 |
try:
|
54 |
ds = load_dataset(_id)["train"]
|
55 |
except:
|
@@ -73,8 +73,10 @@ def main():
|
|
73 |
|
74 |
votes_column = upvotes
|
75 |
|
76 |
-
ds_to_push.add_column("upvotes", votes_column)
|
77 |
sorted_ds = ds_to_push.sort("upvotes", reverse=True)
|
78 |
|
79 |
-
import ipdb; ipdb.set_trace()
|
80 |
sorted_ds.push_to_hub(f"{UPLOAD_ORG}/{name}")
|
|
|
|
|
|
|
|
41 |
parti_prompt_categories = ds["Category"]
|
42 |
parti_prompt_challenge = ds["Challenge"]
|
43 |
|
44 |
+
UPLOAD_ORG = "Almost-AGI-Diffusion"
|
45 |
|
46 |
def load_non_solved():
|
47 |
all_datasets = list_datasets(author=SUBMISSION_ORG)
|
|
|
49 |
|
50 |
all_non_solved_image_ids = []
|
51 |
|
52 |
+
for _id in relevant_ids:
|
53 |
try:
|
54 |
ds = load_dataset(_id)["train"]
|
55 |
except:
|
|
|
73 |
|
74 |
votes_column = upvotes
|
75 |
|
76 |
+
ds_to_push = ds_to_push.add_column("upvotes", votes_column)
|
77 |
sorted_ds = ds_to_push.sort("upvotes", reverse=True)
|
78 |
|
|
|
79 |
sorted_ds.push_to_hub(f"{UPLOAD_ORG}/{name}")
|
80 |
+
|
81 |
+
if __name__ == "__main__":
|
82 |
+
main()
|