Prathamesh1420 commited on
Commit
bec1a6d
1 Parent(s): 9a5e4ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -4,14 +4,12 @@ from langchain_google_genai import ChatGoogleGenerativeAI
4
  from dotenv import load_dotenv
5
  import os
6
 
7
- from langchain_community.llms import HuggingFaceHub
8
-
9
  load_dotenv()
10
 
11
- llm = HuggingFaceHub(
12
- repo_id="HuggingFaceH4/zephyr-7b-beta",
13
- huggingfacehub_api_token=os.getenv('HF_API_KEY'),
14
- task="text-generation"
15
  )
16
 
17
  # Define Agents
 
4
  from dotenv import load_dotenv
5
  import os
6
 
7
+ # Load environment variables
 
8
  load_dotenv()
9
 
10
+ # Initialize Google Gemini AI
11
+ llm = ChatGoogleGenerativeAI(
12
+ api_key=os.getenv('GOOGLE_API_KEY')
 
13
  )
14
 
15
  # Define Agents