Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,12 +71,13 @@ user_input = st.text_input("What graphics do you have in mind")
|
|
71 |
generate_button = st.button("Generate")
|
72 |
|
73 |
if generate_button and user_input:
|
|
|
74 |
if not SUPABASE_URL or not SUPABASE_KEY:
|
75 |
print("Error: Supabase URL and/or Key not found in environment variables.")
|
76 |
|
77 |
else:
|
78 |
-
|
79 |
-
|
80 |
response = supabase.table("your_test_table").select("*").limit(1).execute()
|
81 |
|
82 |
if response.error:
|
|
|
71 |
generate_button = st.button("Generate")
|
72 |
|
73 |
if generate_button and user_input:
|
74 |
+
|
75 |
if not SUPABASE_URL or not SUPABASE_KEY:
|
76 |
print("Error: Supabase URL and/or Key not found in environment variables.")
|
77 |
|
78 |
else:
|
79 |
+
try:
|
80 |
+
|
81 |
response = supabase.table("your_test_table").select("*").limit(1).execute()
|
82 |
|
83 |
if response.error:
|