ishans24 commited on
Commit
55c7dac
·
verified ·
1 Parent(s): b996741

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +5 -3
util.py CHANGED
@@ -7,9 +7,11 @@ from langchain.prompts import PromptTemplate
7
  from langchain_google_genai import GoogleGenerativeAIEmbeddings
8
  from langchain_google_genai import ChatGoogleGenerativeAI
9
  import google.generativeai as genai
10
- from dotenv import load_dotenv
11
- load_dotenv()
12
- genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
 
 
13
 
14
  def extract_text(json_path):
15
  with open(json_path, 'r') as file:
 
7
  from langchain_google_genai import GoogleGenerativeAIEmbeddings
8
  from langchain_google_genai import ChatGoogleGenerativeAI
9
  import google.generativeai as genai
10
+ # from dotenv import load_dotenv
11
+ # load_dotenv()
12
+ # genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
13
+ from .ConfigEnv import config
14
+ genai.configure(api_key=config.GOOGLE_API_KEY)
15
 
16
  def extract_text(json_path):
17
  with open(json_path, 'r') as file: