zhimin-z commited on
Commit
6cc4456
·
1 Parent(s): 3d0015d
Files changed (2) hide show
  1. app.py +3 -3
  2. msr.py +3 -3
app.py CHANGED
@@ -119,8 +119,8 @@ def load_agents_from_hf():
119
  with open(file_path, 'r') as f:
120
  agent_data = json.load(f)
121
 
122
- # Only process agents with status == "public"
123
- if agent_data.get('status') != 'public':
124
  continue
125
 
126
  # Extract github_identifier from filename (e.g., "claude[bot].json" -> "claude[bot]")
@@ -546,7 +546,7 @@ def submit_agent(identifier, agent_name, organization, website):
546
  'organization': organization,
547
  'github_identifier': identifier,
548
  'website': website,
549
- 'status': 'public'
550
  }
551
 
552
  # Save to HuggingFace
 
119
  with open(file_path, 'r') as f:
120
  agent_data = json.load(f)
121
 
122
+ # Only process agents with status == "active"
123
+ if agent_data.get('status') != 'active':
124
  continue
125
 
126
  # Extract github_identifier from filename (e.g., "claude[bot].json" -> "claude[bot]")
 
546
  'organization': organization,
547
  'github_identifier': identifier,
548
  'website': website,
549
+ 'status': 'active'
550
  }
551
 
552
  # Save to HuggingFace
msr.py CHANGED
@@ -592,8 +592,8 @@ def load_agents_from_hf():
592
  with open(file_path, 'r', encoding='utf-8') as f:
593
  agent_data = json.load(f)
594
 
595
- # Only include public agents
596
- if agent_data.get('status') != 'public':
597
  continue
598
 
599
  # Extract github_identifier from filename
@@ -606,7 +606,7 @@ def load_agents_from_hf():
606
  print(f" ⚠ Error loading {filename}: {str(e)}")
607
  continue
608
 
609
- print(f" ✓ Loaded {len(agents)} public agents (from {files_processed} total files)")
610
  return agents
611
 
612
 
 
592
  with open(file_path, 'r', encoding='utf-8') as f:
593
  agent_data = json.load(f)
594
 
595
+ # Only include active agents
596
+ if agent_data.get('status') != 'active':
597
  continue
598
 
599
  # Extract github_identifier from filename
 
606
  print(f" ⚠ Error loading {filename}: {str(e)}")
607
  continue
608
 
609
+ print(f" ✓ Loaded {len(agents)} active agents (from {files_processed} total files)")
610
  return agents
611
 
612