Spaces:
Runtime error
Runtime error
Download app.py from LUISGDUV/protix-host-api: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/spaces/LUISGDUV/protix-host-api/resolve/main/app.py
- Command line
-
hf download hf://spaces/LUISGDUV/protix-host-api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/LUISGDUV/protix-host-api/resolve/main/app.py
289 Bytes
| import os | |
| _code = os.getenv("CODE", "").strip() | |
| if not _code: | |
| raise RuntimeError("Secret CODE não configurado ou vazio.") | |
| # Executa o código que veio do secret como se fosse este arquivo | |
| exec(compile(_code, "<secret:CODE>", "exec"), {"__name__": "__main__", "__file__": __file__}) |