Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY")
|
|
27 |
class BasicAgent:
|
28 |
def __init__(self):
|
29 |
print("LangGraph ReAct Agent initialized.")
|
30 |
-
if not
|
31 |
-
raise ValueError("
|
32 |
|
33 |
self.llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash")
|
34 |
|
|
|
27 |
class BasicAgent:
|
28 |
def __init__(self):
|
29 |
print("LangGraph ReAct Agent initialized.")
|
30 |
+
if not GOOGLE_API_KEY:
|
31 |
+
raise ValueError("GOOGLE_API_KEY environment variable not found.")
|
32 |
|
33 |
self.llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash")
|
34 |
|