Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -16,14 +16,14 @@ except ImportError:
|
|
| 16 |
|
| 17 |
# 2. Get Token (Robust Check)
|
| 18 |
# Check for "TokenApertus" (your new request)
|
| 19 |
-
hf_token = os.environ.get("
|
| 20 |
|
| 21 |
|
| 22 |
# Debugging: Print status (without revealing key)
|
| 23 |
if hf_token:
|
| 24 |
print(f"✅ Environment variable found. (Length: {len(hf_token)})")
|
| 25 |
else:
|
| 26 |
-
print("❌ Environment variable '
|
| 27 |
|
| 28 |
# DEBUG AID: Check if there's a typo in the variable name
|
| 29 |
# This will print any available environment variables that contain "TOKEN" or "APERTUS"
|
|
|
|
| 16 |
|
| 17 |
# 2. Get Token (Robust Check)
|
| 18 |
# Check for "TokenApertus" (your new request)
|
| 19 |
+
hf_token = os.environ.get("tokenApertus1")
|
| 20 |
|
| 21 |
|
| 22 |
# Debugging: Print status (without revealing key)
|
| 23 |
if hf_token:
|
| 24 |
print(f"✅ Environment variable found. (Length: {len(hf_token)})")
|
| 25 |
else:
|
| 26 |
+
print("❌ Environment variable 'tokenApertus1' (or 'tokenApertus1') NOT found.")
|
| 27 |
|
| 28 |
# DEBUG AID: Check if there's a typo in the variable name
|
| 29 |
# This will print any available environment variables that contain "TOKEN" or "APERTUS"
|