shukdevdatta123 commited on
Commit
8e8e341
·
verified ·
1 Parent(s): bf6d94a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def query_pdf(file, user_query, openai_api_key):
56
  vector_store = FAISS.from_documents(documents, embeddings)
57
 
58
  # Create a conversational chain that allows us to query the document
59
- llm = ChatOpenAI(model="gpt-4") # Using GPT-4 as the LLM
60
  conversational_chain = ConversationalChain(
61
  llm=llm,
62
  vectorstore=vector_store,
 
56
  vector_store = FAISS.from_documents(documents, embeddings)
57
 
58
  # Create a conversational chain that allows us to query the document
59
+ llm = ChatOpenAI(model="gpt-4o") # Using GPT-4 as the LLM
60
  conversational_chain = ConversationalChain(
61
  llm=llm,
62
  vectorstore=vector_store,