Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def generate_graph_prompt(country1, country2, metric, start_year, end_year):
|
|
41 |
|
42 |
SUPABASE_URL = os.environ.get("SUPABASE_URL")
|
43 |
SUPABASE_KEY = os.environ.get("SUPABASE_KEY")
|
|
|
44 |
|
45 |
def load_data():
|
46 |
|
@@ -74,9 +75,7 @@ if generate_button and user_input:
|
|
74 |
print("Error: Supabase URL and/or Key not found in environment variables.")
|
75 |
|
76 |
else:
|
77 |
-
|
78 |
-
|
79 |
-
try:
|
80 |
# Try a simple query - fetching all rows from a basic table (adjust table name)
|
81 |
response = supabase.table("your_test_table").select("*").limit(1).execute()
|
82 |
|
|
|
41 |
|
42 |
SUPABASE_URL = os.environ.get("SUPABASE_URL")
|
43 |
SUPABASE_KEY = os.environ.get("SUPABASE_KEY")
|
44 |
+
supabase: Client = create_client(SUPABASE_URL, SUPABASE_KEY)
|
45 |
|
46 |
def load_data():
|
47 |
|
|
|
75 |
print("Error: Supabase URL and/or Key not found in environment variables.")
|
76 |
|
77 |
else:
|
78 |
+
try:
|
|
|
|
|
79 |
# Try a simple query - fetching all rows from a basic table (adjust table name)
|
80 |
response = supabase.table("your_test_table").select("*").limit(1).execute()
|
81 |
|