Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,17 +79,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 79 |
print("User not logged in.")
|
| 80 |
return "Please Login to Hugging Face with the button.", None
|
| 81 |
|
| 82 |
-
|
| 83 |
-
target_task_ids = [
|
| 84 |
-
'4fc2f1ae-8625-45b5-ab34-ad4433bc21f8',
|
| 85 |
-
'8e867cd7-cff9-4e6c-867a-ff5ddc2550be',
|
| 86 |
-
'ec09fa32-d03f-4bf8-84b0-1f16922c3ae4',
|
| 87 |
-
'2d83110e-a098-4ebb-9987-066c06fa42d0',
|
| 88 |
-
'5cfb274c-0207-4aa7-9575-6ac0bd95d9b2',
|
| 89 |
-
'27d5d136-8563-469e-92bf-fd103c28b57c',
|
| 90 |
-
'dc28cf18-6431-458b-83ef-64b3ce566c10',
|
| 91 |
-
'42576abe-0deb-4869-8c63-225c2d75a95a'
|
| 92 |
-
]
|
| 93 |
"""
|
| 94 |
# Filter the dataset to include ONLY the target task ID
|
| 95 |
# This uses the 'filter' method available on Hugging Face datasets.
|
|
@@ -122,9 +112,33 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 122 |
|
| 123 |
# 3. Filter the original dataset using the complete list of unique IDs
|
| 124 |
# This replaces the need for complex concatenation.
|
| 125 |
-
|
| 126 |
-
subset = subset.to_list()
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
results_log = []
|
| 130 |
answers_payload = []
|
|
|
|
| 79 |
print("User not logged in.")
|
| 80 |
return "Please Login to Hugging Face with the button.", None
|
| 81 |
|
| 82 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
"""
|
| 84 |
# Filter the dataset to include ONLY the target task ID
|
| 85 |
# This uses the 'filter' method available on Hugging Face datasets.
|
|
|
|
| 112 |
|
| 113 |
# 3. Filter the original dataset using the complete list of unique IDs
|
| 114 |
# This replaces the need for complex concatenation.
|
| 115 |
+
"""
|
|
|
|
| 116 |
|
| 117 |
+
target_task_ids = [
|
| 118 |
+
"8e867cd7-cff9-4e6c-867a-ff5ddc2550be",
|
| 119 |
+
"a1e91b78-d3d8-4675-bb8d-62741b4b68a6",
|
| 120 |
+
"2d83110e-a098-4ebb-9987-066c06fa42d0",
|
| 121 |
+
"cca530fc-4052-43b2-b130-b30968d8aa44",
|
| 122 |
+
"4fc2f1ae-8625-45b5-ab34-ad4433bc21f8",
|
| 123 |
+
"6f37996b-2ac7-44b0-8e68-6d28256631b4",
|
| 124 |
+
"9d191bce-651d-4746-be2d-7ef8ecadb9c2",
|
| 125 |
+
"cabe07ed-9eca-40ea-8ead-410ef5e83f91",
|
| 126 |
+
"3cef3a44-215e-4aed-8e3b-b1e3f08063b7",
|
| 127 |
+
"99c9cc74-fdc8-46c6-8f8d-3ce2d3bfeea3",
|
| 128 |
+
"305ac316-eef6-4446-960a-92d80d542f82",
|
| 129 |
+
"f918266a-b3e0-4914-865d-4faa564f1aef",
|
| 130 |
+
"3f57289b-8c60-48be-bd80-01f8099ca449",
|
| 131 |
+
"1f975693-876d-457b-a649-393859e79bf3",
|
| 132 |
+
"840bfca7-4f7b-481a-8794-c560c340185d",
|
| 133 |
+
"bda648d7-d618-4883-88f4-3466eabd860e",
|
| 134 |
+
"cf106601-ab4f-4af9-b045-5295fe67b37d",
|
| 135 |
+
"a0c07678-e491-4bbc-8f0b-07405144218f",
|
| 136 |
+
"7bd855d8-463d-4ed5-93ca-5fe35145f733",
|
| 137 |
+
"5a0c1adf-205e-4841-a666-7c3ef95def9d"
|
| 138 |
+
]
|
| 139 |
+
subset = dataset.filter(lambda example: example['task_id'] in target_task_ids)
|
| 140 |
+
subset = subset.to_list()
|
| 141 |
+
|
| 142 |
|
| 143 |
results_log = []
|
| 144 |
answers_payload = []
|