Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,7 @@ from langchain_google_genai import ChatGoogleGenerativeAI
|
|
4 |
from langchain.tools import Tool
|
5 |
from langchain_community.tools.google_search import GoogleSearchResults
|
6 |
import json
|
7 |
-
|
8 |
-
# Get API key for Gemini
|
9 |
-
GEMINI_API_KEY = userdata.get("gemini_api")
|
10 |
|
11 |
# Configure LangChain LLM with Gemini 2.0
|
12 |
llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash-exp", google_api_key=os.getenv("gemini_api"))
|
|
|
4 |
from langchain.tools import Tool
|
5 |
from langchain_community.tools.google_search import GoogleSearchResults
|
6 |
import json
|
7 |
+
import os
|
|
|
|
|
8 |
|
9 |
# Configure LangChain LLM with Gemini 2.0
|
10 |
llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash-exp", google_api_key=os.getenv("gemini_api"))
|