Spaces:
Runtime error
Runtime error
| #!/usr/bin/env python3 | |
| import sys | |
| from pathlib import Path | |
| import subprocess | |
| def verify(): | |
| print("π Synesthesia Workstation Verification") | |
| print("---------------------------------------") | |
| # 1. Path Injection Check | |
| root = Path(__file__).resolve().parents[1] | |
| sys.path.append(str(root)) | |
| try: | |
| from ML_Pipeline.shared import env | |
| print(f"β Phase 0: Imports Secured. Root: {root}") | |
| print(f"β Phase 1: Platform: {env.PLATFORM}") | |
| except ImportError as e: | |
| print(f"β Phase 0: Import Failure: {e}") | |
| return False | |
| # 2. Config Check | |
| ds_config = root / "configs/ds_offload_config.json" | |
| if ds_config.exists(): | |
| print(f"β Phase 2: ZeRO-Offload Config Present.") | |
| else: | |
| print(f"β Phase 2: ZeRO-Offload Config Missing.") | |
| return False | |
| # 3. Prompt Check | |
| prompt = root / "ML_Pipeline/shared/prompts/conductor_prompt.txt" | |
| if prompt.exists(): | |
| print(f"β Phase 3: Cognitive Prompt Staged.") | |
| else: | |
| print(f"β Phase 3: Cognitive Prompt Missing.") | |
| return False | |
| print("\nWORKBENCH SECURED. READY TO UNSTASH GENKIT.") | |
| return True | |
| if __name__ == "__main__": | |
| if not verify(): | |
| sys.exit(1) | |