File size: 682 Bytes
4b3a33f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import asyncio
import os
from supabase import create_client
from dotenv import load_dotenv

load_dotenv()

SUPABASE_URL = os.environ.get("SUPABASE_URL")
SUPABASE_KEY = os.environ.get("SUPABASE_SERVICE_ROLE_KEY") or os.environ.get("SUPABASE_KEY")
client = create_client(SUPABASE_URL, SUPABASE_KEY)

async def check_clusters():
    res = client.table("profiles").select("id, cluster_label").limit(10).execute()
    if not res.data:
        print("No profiles found")
        return
        
    print("Sample Cluster Labels:")
    for row in res.data:
        print(f"  - ID: {row['id']} | Label: {row['cluster_label']}")

if __name__ == "__main__":
    asyncio.run(check_clusters())