Spaces:
Sleeping
Sleeping
zhimin-z
commited on
Commit
·
6cc4456
1
Parent(s):
3d0015d
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., "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': '
|
| 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
|
| 596 |
-
if agent_data.get('status') != '
|
| 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)}
|
| 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 |
|