raghuram13 commited on
Commit
643639e
1 Parent(s): 5e300a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -6,7 +6,9 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
6
  from langchain import OpenAI, VectorDBQA
7
 
8
  import os
9
- openai_api_key = os.environ["OPENAI_API_KEY"]
 
 
10
 
11
 
12
  def pdf_to_text(pdf_file, query):
 
6
  from langchain import OpenAI, VectorDBQA
7
 
8
  import os
9
+ import openai
10
+ os.environ["OPENAI_API_KEY"]= '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'
11
+ openai.api_key = os.environ["OPENAI_API_KEY"]
12
 
13
 
14
  def pdf_to_text(pdf_file, query):