Spaces:
Sleeping
Sleeping
commit the changes
Browse files- database.py +1 -1
- routes/analytics.py +3 -3
database.py
CHANGED
|
@@ -9,7 +9,7 @@ from dotenv import load_dotenv
|
|
| 9 |
from supabase import create_client, Client
|
| 10 |
from dotenv import load_dotenv
|
| 11 |
load_dotenv(dotenv_path=".env") # ✅ Explicitly load the .env file
|
| 12 |
-
from
|
| 13 |
|
| 14 |
|
| 15 |
# Load environment variables
|
|
|
|
| 9 |
from supabase import create_client, Client
|
| 10 |
from dotenv import load_dotenv
|
| 11 |
load_dotenv(dotenv_path=".env") # ✅ Explicitly load the .env file
|
| 12 |
+
from config import SUPABASE_URL, SUPABASE_KEY
|
| 13 |
|
| 14 |
|
| 15 |
# Load environment variables
|
routes/analytics.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
from fastapi import APIRouter, HTTPException, Query
|
| 2 |
import pandas as pd
|
| 3 |
-
from
|
| 4 |
from dotenv import load_dotenv
|
| 5 |
-
from
|
| 6 |
SatisfactionRequest, PerformanceRequest, RetentionRequest, TrainingRequest
|
| 7 |
)
|
| 8 |
-
from
|
| 9 |
satisfaction_model, performance_model, retention_model, training_model, label_enc
|
| 10 |
)
|
| 11 |
|
|
|
|
| 1 |
from fastapi import APIRouter, HTTPException, Query
|
| 2 |
import pandas as pd
|
| 3 |
+
from database import supabase
|
| 4 |
from dotenv import load_dotenv
|
| 5 |
+
from schemas import (
|
| 6 |
SatisfactionRequest, PerformanceRequest, RetentionRequest, TrainingRequest
|
| 7 |
)
|
| 8 |
+
from utils.load_models import (
|
| 9 |
satisfaction_model, performance_model, retention_model, training_model, label_enc
|
| 10 |
)
|
| 11 |
|