zhimin-z commited on
Commit
1b74014
·
1 Parent(s): e671b5c
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
@@ -591,8 +591,8 @@ def load_agents_from_hf():
591
  with open(file_path, 'r', encoding='utf-8') as f:
592
  agent_data = json.load(f)
593
 
594
- # Only include public agents
595
- if agent_data.get('status') != 'public':
596
  continue
597
 
598
  # Extract github_identifier from filename
@@ -605,7 +605,7 @@ def load_agents_from_hf():
605
  print(f" ⚠ Error loading {filename}: {str(e)}")
606
  continue
607
 
608
- print(f" ✓ Loaded {len(agents)} public agents (from {files_processed} total files)")
609
  return agents
610
 
611
 
 
591
  with open(file_path, 'r', encoding='utf-8') as f:
592
  agent_data = json.load(f)
593
 
594
+ # Only include active agents
595
+ if agent_data.get('status') != 'active':
596
  continue
597
 
598
  # Extract github_identifier from filename
 
605
  print(f" ⚠ Error loading {filename}: {str(e)}")
606
  continue
607
 
608
+ print(f" ✓ Loaded {len(agents)} active agents (from {files_processed} total files)")
609
  return agents
610
 
611