akadhim-ai commited on
Commit
79c3b92
1 Parent(s): 33e706a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -5,11 +5,6 @@ from langchain.text_splitter import CharacterTextSplitter
5
  from langchain.vectorstores import FAISS
6
  from langchain.chains.question_answering import load_qa_chain
7
  from langchain.llms import OpenAI
8
- import os
9
-
10
- os.environ["OPENAI_API_KEY"] = "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"
11
- os.environ["SERPAPI_API_KEY"] = "8ccb7553d2c890be7bbbdc41e5ced77ab3732dfea760e42da3711778c98c074c"
12
-
13
 
14
  # Define a function to load PDF and perform processing
15
  def process_pdf(pdf_path):
 
5
  from langchain.vectorstores import FAISS
6
  from langchain.chains.question_answering import load_qa_chain
7
  from langchain.llms import OpenAI
 
 
 
 
 
8
 
9
  # Define a function to load PDF and perform processing
10
  def process_pdf(pdf_path):