Spaces:
Sleeping
Sleeping
Download app/core/supabase_client.py from otito254/epl-predictor-api: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/app/core/supabase_client.py
- Command line
-
hf download hf://spaces/otito254/epl-predictor-api/app/core/supabase_client.py
-
curl -L -o supabase_client.py https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/app/core/supabase_client.py
282 Bytes
| from supabase import create_client, Client | |
| from app.core.config import settings | |
| _client: Client | None = None | |
| def get_supabase() -> Client: | |
| global _client | |
| if _client is None: | |
| _client = create_client(settings.SUPABASE_URL, settings.SUPABASE_KEY) | |
| return _client | |