zhiminy commited on
Commit
aa66e07
·
1 Parent(s): 9421140
Files changed (1) hide show
  1. msr.py +7 -2
msr.py CHANGED
@@ -436,11 +436,16 @@ def load_agents_from_hf():
436
 
437
  with open(file_path, 'r') as f:
438
  agent_data = json.load(f)
439
-
 
 
 
 
 
440
  # Extract github_identifier from filename (remove .json extension)
441
  github_identifier = json_file.replace('.json', '')
442
  agent_data['github_identifier'] = github_identifier
443
-
444
  agents.append(agent_data)
445
 
446
  except Exception as e:
 
436
 
437
  with open(file_path, 'r') as f:
438
  agent_data = json.load(f)
439
+
440
+ # Only process agents with status == "public"
441
+ if agent_data.get('status') != 'public':
442
+ print(f"Skipping {json_file}: status is not 'public'")
443
+ continue
444
+
445
  # Extract github_identifier from filename (remove .json extension)
446
  github_identifier = json_file.replace('.json', '')
447
  agent_data['github_identifier'] = github_identifier
448
+
449
  agents.append(agent_data)
450
 
451
  except Exception as e: