Spaces:
Runtime error
Runtime error
Download codeinterpreterapi/config.py from brzhang/codeinterpreter: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/spaces/brzhang/codeinterpreter/resolve/f4875a19a77bf164ed2199a2df3de9f04ea009d2/codeinterpreterapi/config.py
- Command line
-
hf download hf://spaces/brzhang/codeinterpreter@f4875a19a77bf164ed2199a2df3de9f04ea009d2/codeinterpreterapi/config.py
-
curl -L -o config.py https://huggingface.co/spaces/brzhang/codeinterpreter/resolve/f4875a19a77bf164ed2199a2df3de9f04ea009d2/codeinterpreterapi/config.py
390 Bytes
| from pydantic import BaseSettings | |
| from dotenv import load_dotenv | |
| from typing import Optional | |
| # .env file | |
| load_dotenv(dotenv_path="./.env") | |
| class CodeInterpreterAPISettings(BaseSettings): | |
| """ | |
| CodeInterpreter API Config | |
| """ | |
| VERBOSE: bool = False | |
| CODEBOX_API_KEY: Optional[str] = None | |
| OPENAI_API_KEY: Optional[str] = None | |
| settings = CodeInterpreterAPISettings() | |