Sborole commited on
Commit
142415b
·
verified ·
1 Parent(s): 0ad716a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -78,7 +78,12 @@ 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
 
 
 
 
 
82
  results_log = []
83
  answers_payload = []
84
  for item in subset:
 
78
  else:
79
  print("User not logged in.")
80
  return "Please Login to Hugging Face with the button.", None
81
+ target_id = '935e2cff-ae78-4218-b3f5-115589b19dae'
82
 
83
+ # Filter the dataset to include ONLY the target task ID
84
+ # This uses the 'filter' method available on Hugging Face datasets.
85
+ subset = dataset.filter(lambda example: example['task_id'] == target_id)
86
+
87
  results_log = []
88
  answers_payload = []
89
  for item in subset: