Spaces:
Build error
Build error
feat: Adicionando funcionalidade de IA para chatbot, incluindo template de mensagem e comportamento de regra.
3b4b1fb Download util/access_token.py from wendellast/CommitIa: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/spaces/wendellast/CommitIa/resolve/main/util/access_token.py
- Command line
-
hf download hf://spaces/wendellast/CommitIa/util/access_token.py
-
curl -L -o access_token.py https://huggingface.co/spaces/wendellast/CommitIa/resolve/main/util/access_token.py
236 Bytes
| import os | |
| from dotenv import load_dotenv | |
| def load_token(token_env): | |
| load_dotenv() | |
| token = os.getenv(token_env) | |
| if token is None: | |
| raise ValueError("Token não encontrado no arquivo .env") | |
| return str(token) | |