Spaces:
Running
Running
Update agents/intent.py
Browse files- agents/intent.py +1 -1
agents/intent.py
CHANGED
|
@@ -72,7 +72,7 @@ def rule_based_parse(message: str) -> dict:
|
|
| 72 |
|
| 73 |
|
| 74 |
def run(message: str) -> dict:
|
| 75 |
-
api_key = os.environ.get("GEMINI_API_KEY", "
|
| 76 |
|
| 77 |
# ββ Try Gemini first βββββββββββββββββββββββββββββββββββββββββ
|
| 78 |
if api_key and api_key != "YOUR_GEMINI_API_KEY_HERE":
|
|
|
|
| 72 |
|
| 73 |
|
| 74 |
def run(message: str) -> dict:
|
| 75 |
+
api_key = os.environ.get("GEMINI_API_KEY", "GEMINI_API_KEY").strip()
|
| 76 |
|
| 77 |
# ββ Try Gemini first βββββββββββββββββββββββββββββββββββββββββ
|
| 78 |
if api_key and api_key != "YOUR_GEMINI_API_KEY_HERE":
|