Spaces:
Runtime error
Runtime error
Download backend/tests/evals/live.py from firebird-technologies/NoteStack-Test: direct link, hf CLI and curl.
- Browser
- Download file 487 Bytes
-
https://huggingface.co/spaces/firebird-technologies/NoteStack-Test/resolve/main/backend/tests/evals/live.py
- Command line
-
hf download hf://spaces/firebird-technologies/NoteStack-Test/backend/tests/evals/live.py
-
curl -L -o live.py https://huggingface.co/spaces/firebird-technologies/NoteStack-Test/resolve/main/backend/tests/evals/live.py
487 Bytes
| """Shared helpers for the opt-in live evals (real model calls). conftest blanks every API key in the environment so | |
| the normal tests never call out; these read them from the same .env files the app loads (backend first, then the | |
| repo root).""" | |
| from dotenv import dotenv_values | |
| from app.config import _ROOT_ENV | |
| def env_value(name: str) -> str: | |
| for path in (".env", _ROOT_ENV): | |
| value = dotenv_values(path).get(name) | |
| if value: | |
| return value | |
| return "" | |