juancamval commited on
Commit
dcf523f
·
verified ·
1 Parent(s): 0522a90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -43,12 +43,12 @@ 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
 
48
  """fertility, geo data, labor, population y predictions """
49
  try:
50
  if supabase:
51
- response = supabase.from_("YourTableName").select("*").execute()
52
  print(f"Response object: {response}") # Inspect the entire response
53
  print(f"Response type: {type(response)}") # Check the object type
54
 
@@ -74,7 +74,7 @@ def load_data():
74
  return pd.DataFrame()
75
 
76
 
77
- data = load_data()
78
  # Pendiente las Keys, dependiendo del modelo que escojamos
79
 
80
  model_name = "google/flan-t5-small" # Probando modelos
 
43
  SUPABASE_KEY = os.environ.get("SUPABASE_KEY")
44
  supabase: Client = create_client(SUPABASE_URL, SUPABASE_KEY)
45
 
46
+ def load_data(table):
47
 
48
  """fertility, geo data, labor, population y predictions """
49
  try:
50
  if supabase:
51
+ response = supabase.from_(table).select("*").execute()
52
  print(f"Response object: {response}") # Inspect the entire response
53
  print(f"Response type: {type(response)}") # Check the object type
54
 
 
74
  return pd.DataFrame()
75
 
76
 
77
+ data = load_data("labor")
78
  # Pendiente las Keys, dependiendo del modelo que escojamos
79
 
80
  model_name = "google/flan-t5-small" # Probando modelos