Download scripts/get_api_key.py from lollix91/boccaccioAI: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/lollix91/boccaccioAI/resolve/main/scripts/get_api_key.py
- Command line
-
hf download hf://lollix91/boccaccioAI/scripts/get_api_key.py
-
curl -L -o get_api_key.py https://huggingface.co/lollix91/boccaccioAI/resolve/main/scripts/get_api_key.py
434 Bytes
| """Funzione Modal temporanea per leggere il valore di boccaccio-api-key. | |
| Uso: modal run scripts/get_api_key.py | |
| """ | |
| import os | |
| import modal | |
| app = modal.App("get-api-key") | |
| def get_key() -> str: | |
| return os.environ.get("BOCCACCIO_API_KEY", "<NON TROVATA>") | |
| def main(): | |
| print("API_KEY_START>>>" + get_key.remote() + "<<<API_KEY_END") | |