Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,6 +78,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 78 |
else:
|
| 79 |
print("User not logged in.")
|
| 80 |
return "Please Login to Hugging Face with the button.", None
|
|
|
|
|
|
|
| 81 |
target_task_ids = [
|
| 82 |
'4fc2f1ae-8625-45b5-ab34-ad4433bc21f8',
|
| 83 |
'8e867cd7-cff9-4e6c-867a-ff5ddc2550be',
|
|
@@ -88,11 +90,12 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 88 |
'dc28cf18-6431-458b-83ef-64b3ce566c10',
|
| 89 |
'42576abe-0deb-4869-8c63-225c2d75a95a'
|
| 90 |
]
|
| 91 |
-
|
| 92 |
# Filter the dataset to include ONLY the target task ID
|
| 93 |
# This uses the 'filter' method available on Hugging Face datasets.
|
| 94 |
-
subset = dataset.filter(lambda example: example['task_id'] in target_task_ids)
|
| 95 |
-
|
|
|
|
| 96 |
results_log = []
|
| 97 |
answers_payload = []
|
| 98 |
for item in subset:
|
|
|
|
| 78 |
else:
|
| 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',
|
|
|
|
| 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.
|
| 96 |
+
#subset = dataset.filter(lambda example: example['task_id'] in target_task_ids)
|
| 97 |
+
subset = dataset[20:51]
|
| 98 |
+
|
| 99 |
results_log = []
|
| 100 |
answers_payload = []
|
| 101 |
for item in subset:
|