Spaces:
Running
Running
Commit
·
1883e73
1
Parent(s):
41f17f2
fixed circular imports
Browse files- backend/agent.py +0 -13
backend/agent.py
CHANGED
|
@@ -34,19 +34,6 @@ from langgraph.checkpoint.memory import MemorySaver
|
|
| 34 |
# import function from api.py
|
| 35 |
from .g_cal import get_gcal_service
|
| 36 |
|
| 37 |
-
GOOGLE_SCOPES = ["https://www.googleapis.com/auth/calendar.events"]
|
| 38 |
-
|
| 39 |
-
CREDS_DIR = Path("backend/credentials")
|
| 40 |
-
CREDS_DIR.mkdir(parents=True, exist_ok=True)
|
| 41 |
-
CLIENT_SECRET_FILE = CREDS_DIR / "credentials.json" # download from Google Cloud
|
| 42 |
-
TOKEN_FILE = CREDS_DIR / "token.json"
|
| 43 |
-
|
| 44 |
-
if not CLIENT_SECRET_FILE.exists():
|
| 45 |
-
raise FileNotFoundError(
|
| 46 |
-
f"Missing OAuth client file: {CLIENT_SECRET_FILE}\n"
|
| 47 |
-
"Create an OAuth 2.0 Client ID (Desktop) and download JSON."
|
| 48 |
-
)
|
| 49 |
-
|
| 50 |
api_key = os.environ.get("NVIDIA_API_KEY")
|
| 51 |
if not api_key:
|
| 52 |
raise RuntimeError("🚨 NVIDIA_API_KEY not found in environment!")
|
|
|
|
| 34 |
# import function from api.py
|
| 35 |
from .g_cal import get_gcal_service
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
api_key = os.environ.get("NVIDIA_API_KEY")
|
| 38 |
if not api_key:
|
| 39 |
raise RuntimeError("🚨 NVIDIA_API_KEY not found in environment!")
|