zliang commited on
Commit
828e638
1 Parent(s): 0faf6cd

Update pdfsummary_fun.py

Browse files
Files changed (1) hide show
  1. pdfsummary_fun.py +2 -3
pdfsummary_fun.py CHANGED
@@ -9,9 +9,8 @@ from langchain_openai import ChatOpenAI
9
  import os
10
 
11
 
12
- from dotenv import load_dotenv
13
- load_dotenv() # This loads the variables from .env
14
- openai_api_key = os.getenv('openai_api_key')
15
 
16
  def pdf_summary(ocr_results_folder):
17
 
 
9
  import os
10
 
11
 
12
+ openai_api_key=os.environ.get("openai_api_key")
13
+
 
14
 
15
  def pdf_summary(ocr_results_folder):
16