Spaces:
Sleeping
Sleeping
superfastson commited on
Commit ·
0a3b18f
1
Parent(s): d417839
Hotfix: Zero-Crash Poe Access Key Failsafe
Browse files22 unmodified lines2324252627282922 unmodified linesexcept ImportError:POE_ENABLED = FalsePOE_ACCESS_KEY = os.environ.get("POE_ACCESS_KEY", "")logger = logging.getLogger("saikou_model10")if not logger.handlers:22 unmodified lines23242526272829303122 unmodified linesexcept ImportError:POE_ENABLED = False# --- ZERO-CRASH FAILSAFE VOOR POE KEY ---raw_poe_key = os.environ.get("POE_ACCESS_KEY", "").strip()POE_ACCESS_KEY = raw_poe_key if len(raw_poe_key) == 32 else "12345678901234567890123456789012"logger = logging.getLogger("saikou_model10")if not logger.handlers:
main.py+3-1