zhimin-z
commited on
Commit
·
b984c23
1
Parent(s):
365e0ac
refine
Browse files
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 == "
|
| 123 |
-
if agent_data.get('status') != '
|
| 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': '
|
| 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
|
| 604 |
-
if agent_data.get('status') != '
|
| 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)}
|
| 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 |
|