palbha commited on
Commit
1bb6c90
·
verified ·
1 Parent(s): 7f909a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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"))