Spaces:
Running
Running
Download bioai-platform/backend/app/services/supabase.py from Samad14/bio-nexus-api: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/spaces/Samad14/bio-nexus-api/resolve/main/bioai-platform/backend/app/services/supabase.py
- Command line
-
hf download hf://spaces/Samad14/bio-nexus-api/bioai-platform/backend/app/services/supabase.py
-
curl -L -o supabase.py https://huggingface.co/spaces/Samad14/bio-nexus-api/resolve/main/bioai-platform/backend/app/services/supabase.py
328 Bytes
| from supabase import create_client, Client | |
| from app.config import settings | |
| _supabase: Client | None = None | |
| def get_supabase() -> Client: | |
| global _supabase | |
| if _supabase is None: | |
| _supabase = create_client(settings.SUPABASE_URL, settings.SUPABASE_SERVICE_ROLE_KEY) | |
| return _supabase | |
| get_client = get_supabase | |