Repository navigation
Expand file tree
/
Copy pathfix_space_static.py
More file actions
64 lines (51 loc) · 1.87 KB
/
Copy pathfix_space_static.py
File metadata and controls
64 lines (51 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from huggingface_hub import HfApi
import os
token = 'REMOVED_TOKEN'
api = HfApi(token=token)
BANNER_URL = "https://huggingface.co/ACLASCollege/neuro-edu-core-v3/resolve/main/assets/banner.png"
DOI_BADGE = "[](https://doi.org/10.5281/zenodo.19743807)"
def fix_space_static():
repo_id = 'ACLASCollege/aclas-neuro-dashboard'
print(f"Fixing Space configuration as STATIC for {repo_id}...")
# Correct YAML for a Static Space
content = f"""---
title: Aclas Neuro Dashboard
emoji: 🐨
colorFrom: yellow
colorTo: blue
sdk: static
pinned: false
---

# ACLAS Neuro Dashboard
{DOI_BADGE}
Live 3D WebGL visualization and cognitive telemetry hub for the Neuro-Edu framework.
## 🔗 Resources
- **GitHub**: [aclascollege/neuro-edu](https://github.com/aclascollege/neuro-edu)
- **Organization**: [ACLAS College](https://huggingface.co/ACLASCollege)
## 📜 Citation
If you use this framework, please cite the official technical whitepaper:
```bibtex
@techreport{{aclas_neuro_edu_2026,
title={{Neuro-Edu: A Cognitive Science-Driven Framework for Large Language Model Alignment in Educational Sandbox Simulation}},
author={{Atlanta College of Liberal Arts and Sciences}},
year={{2026}},
institution={{ACLAS College}},
doi={{10.5281/zenodo.19743807}},
url={{https://doi.org/10.5281/zenodo.19743807}}
}}
```
"""
with open("FIX_STATIC_README.md", "w", encoding="utf-8") as f:
f.write(content)
api.upload_file(
path_or_fileobj="FIX_STATIC_README.md",
path_in_repo="README.md",
repo_id=repo_id,
repo_type='space',
commit_message="fix: Restore mandatory Space SDK to static"
)
os.remove("FIX_STATIC_README.md")
print(f"Fixed {repo_id} with Static config.")
if __name__ == '__main__':
fix_space_static()