shukdevdatta123 commited on
Commit
7e5a1b7
·
verified ·
1 Parent(s): 48c5b47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def summarize_pdf(file, openai_api_key):
30
  vector_store = FAISS.from_documents(documents, embeddings)
31
 
32
  # Create a RetrievalQA chain for summarization
33
- llm = ChatOpenAI(model="gpt-4") # Using GPT-4 as the LLM
34
  qa_chain = RetrievalQA.from_chain_type(
35
  llm=llm,
36
  chain_type="stuff",
 
30
  vector_store = FAISS.from_documents(documents, embeddings)
31
 
32
  # Create a RetrievalQA chain for summarization
33
+ llm = ChatOpenAI(model="gpt-4o") # Using GPT-4 as the LLM
34
  qa_chain = RetrievalQA.from_chain_type(
35
  llm=llm,
36
  chain_type="stuff",