"""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") @app.function(secrets=[modal.Secret.from_name("boccaccio-api-key")]) def get_key() -> str: return os.environ.get("BOCCACCIO_API_KEY", "") @app.local_entrypoint() def main(): print("API_KEY_START>>>" + get_key.remote() + "<<