zhimin-z commited on
Commit
b984c23
·
1 Parent(s): 365e0ac
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., "agent[bot].json" -> "agent[bot]")
@@ -547,7 +547,7 @@ def submit_agent(identifier, agent_name, organization, website):
547
  'organization': organization,
548
  'github_identifier': identifier,
549
  'website': website,
550
- 'status': 'public'
551
  }
552
 
553
  # 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., "agent[bot].json" -> "agent[bot]")
 
547
  'organization': organization,
548
  'github_identifier': identifier,
549
  'website': website,
550
+ 'status': 'active'
551
  }
552
 
553
  # Save to HuggingFace
msr.py CHANGED
@@ -600,8 +600,8 @@ def load_agents_from_hf():
600
  with open(file_path, 'r', encoding='utf-8') as f:
601
  agent_data = json.load(f)
602
 
603
- # Only include public agents
604
- if agent_data.get('status') != 'public':
605
  continue
606
 
607
  # Extract github_identifier from filename
@@ -614,7 +614,7 @@ def load_agents_from_hf():
614
  print(f" ⚠ Error loading {filename}: {str(e)}")
615
  continue
616
 
617
- print(f" ✓ Loaded {len(agents)} public agents (from {files_processed} total files)")
618
  return agents
619
 
620
 
 
600
  with open(file_path, 'r', encoding='utf-8') as f:
601
  agent_data = json.load(f)
602
 
603
+ # Only include active agents
604
+ if agent_data.get('status') != 'active':
605
  continue
606
 
607
  # Extract github_identifier from filename
 
614
  print(f" ⚠ Error loading {filename}: {str(e)}")
615
  continue
616
 
617
+ print(f" ✓ Loaded {len(agents)} active agents (from {files_processed} total files)")
618
  return agents
619
 
620