Spaces:
Sleeping
Sleeping
| import os | |
| from supabase import create_client,Client | |
| from dotenv import load_dotenv | |
| class Supabase : | |
| def __init__(self): | |
| pass | |
| def init_supabase_client(self): | |
| load_dotenv() | |
| try: | |
| client :Client = create_client(os.getenv("SUPABASE_URL"),os.getenv("SUPABASE_KEY")) | |
| return client | |
| except Exception as e : | |
| print(f"Error initializing Supabase client: {e}") | |
| return None |