Spaces:
Running
Running
from supabase import create_client | |
SUPABASE_URL = "https://cxptnhxhrhlwiuzdcyxl.supabase.co" # Replace with your new project URL | |
SUPABASE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImN4cHRuaHhocmhsd2l1emRjeXhsIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc0NDg2NDc0NiwiZXhwIjoyMDYwNDQwNzQ2fQ.22iQvvjU94vD2asqny7D5_18T4drmx7Q1dVZFQroDs4" # Replace with your new anon key | |
supabase = create_client(SUPABASE_URL, SUPABASE_KEY) | |
data = {"query": "test", "response": "test", "rating": "positive"} | |
result = supabase.table("feedback_test").insert(data).execute() | |
print(result) |