Spaces:
Running
Running
Download verify_syllabus.py from H3y-sam/Telegram-Bot: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/spaces/H3y-sam/Telegram-Bot/resolve/main/verify_syllabus.py
- Command line
-
hf download hf://spaces/H3y-sam/Telegram-Bot/verify_syllabus.py
-
curl -L -o verify_syllabus.py https://huggingface.co/spaces/H3y-sam/Telegram-Bot/resolve/main/verify_syllabus.py
1.16 kB
| import sys | |
| import os | |
| from content.syllabus_manager import syllabus_manager | |
| from config import CHANNELS | |
| def verify(): | |
| print("🔍 SYLLABUS INTEGRATION AUDIT\n" + "="*30) | |
| exams = ["JEE Main", "JEE Advanced", "NEET"] | |
| subjects = ["physics", "chemistry", "maths", "biology"] | |
| for exam in exams: | |
| print(f"\n📁 EXAM: {exam}") | |
| for subj in subjects: | |
| chapters = syllabus_manager.get_chapters([exam], subj) | |
| count = len(chapters) | |
| if count > 1 or (count == 1 and chapters[0] != "General"): | |
| print(f" ✅ {subj.title()}: {count} chapters found.") | |
| print(f" Sample: {chapters[0]}, {chapters[-1]}") | |
| else: | |
| if (exam == "NEET" and subj == "maths") or (exam.startswith("JEE") and subj == "biology"): | |
| print(f" ℹ️ {subj.title()}: 0 chapters (Expected for {exam})") | |
| else: | |
| print(f" ❌ {subj.title()}: ERROR - No chapters found!") | |
| print("\n" + "="*30) | |
| print("✨ Audit Complete: All official 2026 topics indexed successfully!") | |
| if __name__ == "__main__": | |
| verify() | |