juancamval commited on
Commit
c7978e1
·
verified ·
1 Parent(s): 4c38736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- 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
 
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: